run applescript
Project description
Install
$ [sudo] pip install applescript
Examples
>>> import applescript
>>> r = applescript.run('path/to/file.applescript')
>>> r = applescript.run('return 1')
>>> 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-0.0.1.tar.gz
(1.4 kB
view hashes)
Built Distribution
Close
Hashes for applescript-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4293df1094c902173df45d291ebc0b1df4e9ba58eb94f2e0a6d9bf33048e6f4f |
|
MD5 | 5142b0f07b5d8583ccd5a479ce2855b3 |
|
BLAKE2b-256 | 71fe3572602f9c71d21a546f283f763427e5eb9d9ecdc78032654c57c3308fa0 |