Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

run applescript

Project description


$ [sudo] pip install applescript


>>> import applescript
>>> r ='return 1')
>>> r ='path/to/file.applescript')

>>> r.code
>>> r.out
'hello world'
>>> r.err

tell application "appname"

>>>"Terminal",'do script "ls"')
>>>"Terminal",'do script "ls"',background=True)

javascript (JXA)


Project details

Download files

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

Files for applescript, version 2020.7.1
Filename, size File type Python version Upload date Hashes
Filename, size applescript-2020.7.1.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page