Skip to main content

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)

python-readme-generator

Project details


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.4.13.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file applescript-2019.4.13.tar.gz.

File metadata

  • Download URL: applescript-2019.4.13.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for applescript-2019.4.13.tar.gz
Algorithm Hash digest
SHA256 8d5341896b9dfc91c33ed9e05188fd2a27f4096bb3ab83409456b3f4e5f7157f
MD5 d3c75b41cb0258216f2b18c48324965f
BLAKE2b-256 6905daebd6c6f2fe6c59821ecce328e6e11e885699a8ad3e81904da9b63bbba6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page