run applescript
Project description
Install
$ [sudo] pip install applescript
Functions
function | description |
---|---|
applescript.run(applescript, background=False) |
run applescript file/string |
applescript.tell.app(appname, applescript, background=False) |
execute applescript tell application "VLC" ... |
Examples
>>> import applescript
>>> r = applescript.run('return 1')
>>> r = applescript.run('path/to/file.applescript')
>>> r.code
0
>>> r.out
'hello world'
>>> r.err
''
tell application "appname"
>>> applescript.tell.app("Terminal",'do script "ls"')
>>> applescript.tell.app("Terminal",'do script "ls"',background=True)
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
applescript-2018.11.19.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for applescript-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ddf8746223b931db7c645147cf0cb4aa03793f50ab5047fd11ad131a71650c |
|
MD5 | 803ebc47207f1aaaebcdde777f058fed |
|
BLAKE2b-256 | 6ae1de37a67fe58c49cbf0970ce004f140b9c7f1a9766368ef88845a794e008e |