Skip to main content

Install

$ [sudo] pip install applescript

Functions

function description
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)

readme-md - README.md generator

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

applescript-2018.11.19.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

applescript-2018.11.19-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: applescript-2018.11.19.tar.gz
  • Upload date:
  • Size: 1.5 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-2018.11.19.tar.gz
Algorithm Hash digest
SHA256 fb87766607244817024606c76724541385d409141b46bf6a26706f90d05bd72c
MD5 861c800b8c2fc9f3b73f1b9ffcad8d14
BLAKE2b-256 df30d453ca7a91439776f133e51b7498962ee41967ca2bb0512c297f79381ed6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: applescript-2018.11.19-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 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-2018.11.19-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19ddf8746223b931db7c645147cf0cb4aa03793f50ab5047fd11ad131a71650c
MD5 803ebc47207f1aaaebcdde777f058fed
BLAKE2b-256 6ae1de37a67fe58c49cbf0970ce004f140b9c7f1a9766368ef88845a794e008e

See more details on using hashes here.

Release history Release notifications | RSS feed

2021.2.9

1 file

2020.12.3

1 file

2020.7.1

1 file

2020.6.12

1 file

2020.5.31

1 file

2020.4.15

1 file

2019.4.13

1 file

2019.4.12

1 file

2019.3.22

2 files

This release

2018.11.19 This release

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page