Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

applescript-0.0.1-py2.py3-none-any.whl (2.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: applescript-0.0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for applescript-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8e22ac37ae2807b1073260f7a11af131863d48837a4888cf7272a3405918e3dd
MD5 118629f94fc15b031ce1a73b3877d8a4
BLAKE2b-256 3a3dfefbdb927e4610d7e7927b1604ca214b7ac04be7a92834edad9123d9752a

See more details on using hashes here.

File details

Details for the file applescript-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: applescript-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for applescript-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4293df1094c902173df45d291ebc0b1df4e9ba58eb94f2e0a6d9bf33048e6f4f
MD5 5142b0f07b5d8583ccd5a479ce2855b3
BLAKE2b-256 71fe3572602f9c71d21a546f283f763427e5eb9d9ecdc78032654c57c3308fa0

See more details on using hashes here.

Supported by

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