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)
Release files for applescript 2019.4.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| applescript-2019.4.13.tar.gz | 1.6 kB | Details |
Release files / applescript-2019.4.13.tar.gz
| Download URL | applescript-2019.4.13.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d5341896b9dfc91c33ed9e05188fd2a27f4096bb3ab83409456b3f4e5f7157f
|
|
BLAKE2b-256 checksum How to use checksums |
6905daebd6c6f2fe6c59821ecce328e6e11e885699a8ad3e81904da9b63bbba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|