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)
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.7.1.tar.gz
(2.0 kB
view details)
File details
Details for the file applescript-2020.7.1.tar.gz.
File metadata
- Download URL: applescript-2020.7.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f386fe2f3ba65dac9f1321bd0ec273beafa60dcc003c5ea9f9dc78cf58234ed
|
|
| MD5 |
1051548933d5a7e88d40560c1453fdac
|
|
| BLAKE2b-256 |
28d843098c5b53d5274f1f56e1220fd715a6ce251e764c3e15281d751f551f8c
|