run applescript
Project description
Installation
$ [sudo] pip install applescript
Functions
function | __doc__ |
---|---|
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)
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-2019.3.22.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for applescript-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174cadec21c48d1759d61d4afed3464df1c1ba56a96d3b30524193f0f092289f |
|
MD5 | c02e7eb5eb26001a3e24008ccc4b1aaf |
|
BLAKE2b-256 | 95bf0449b93c64483f56497511a95489868464a86d3c3c625a556d09144324a2 |