run applescript
Project description
Installation
$ [sudo] pip install applescript
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)
javascript (JXA)
>>> applescript.run('...',javascript=True)
P.S.
test
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-2020.5.31.tar.gz
(2.2 kB
view hashes)