Control AppleScriptable applications from Python.
Project description
Appscript is a high-level, user-friendly Apple event bridge that allows you to control AppleScriptable Mac OS X applications from Python.
Requirements
Appscript supports Python 2.3 to 2.7, and Python 3.1 and later.
Appscript requires Mac OS X 10.4 or later.
Installation
Appscript is packaged using the standard Python Distribution Utilities (a.k.a. Distutils). To install appscript, cd to the appscript-1.0.0 directory and run:
python setup.py install
or:
python3 setup.py install
Setuptools/Distribute (available from <http://cheeseshop.python.org/pypi>) will be used if installed, otherwise setup.py will revert to Distutils.
Building appscript from source requires the gcc compiler supplied with Apple’s Xcode IDE. Xcode can be obtained from Mac OS X installer disks or <http://developer.apple.com>.
Notes
Python 2.x documentation and sample scripts can be found in the appscript_2x/doc and appscript_2x/sample directories.
Python 3.x documentation and sample scripts can be found in the appscript_3x/doc and appscript_3x/sample directories.
Developer tools for exporting application dictionaries (ASDictionary) and converting application commands from AppleScript to appscript syntax (ASTranslate) are available separately:
ASDictionary 0.13.1 or later is also required to use appscript’s built-in help() method. If ASDictionary isn’t installed, interactive help won’t be available but appscript will continue to operate as normal.
Copyright
Appscript is released into the public domain, except for the following code:
portions of ae.c, which are Copyright (C) the original authors; see code for details
SendThreadSafe.h/SendThreadSafe.m, which are modified versions of Apple code (http://developer.apple.com/samplecode/AESendThreadSafe); see code for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for appscript-1.0.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2d935275151f1bfe2b92c3c5263f4b3d45cae1ff242c45ade39a5aef396a92 |
|
MD5 | 42f10390d2413da8745cd31257e366fa |
|
BLAKE2b-256 | 74340caa7591e87ce7f57f9942cd60261e979e73c3af47b954005fc025b32a04 |
Hashes for appscript-1.0.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b72ebcf5a76f87dae46adf873a1899422c9bd7510c47a22172152af2aae58029 |
|
MD5 | 3ac30c61f78c0c86ae7f93ab31cb5813 |
|
BLAKE2b-256 | 2b42ea8f952246e8ed65790a8f436182ca98913e5c31d528c67e386df10ff653 |
Hashes for appscript-1.0.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8213b182224158f4095a24ea7b2e7bc98547d3f129980afd2f2028c8a068024 |
|
MD5 | cc04c1ecb1cd91f4e70b8f49f2083eff |
|
BLAKE2b-256 | 9d452951a4d86cd8929624c761f621ca890d5f786eae49bbfb46e043f1cd90f7 |
Hashes for appscript-1.0.1-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f95bfae422b66199930b4d5482734ee55610156fb8f28a5bcae31b34bc9c0c |
|
MD5 | 5ede36813234e47392057f26608b69c2 |
|
BLAKE2b-256 | 33ac0211e6824801d62e8036bc5b9b5292cfe316898e658c1df56cf5ed36467d |
Hashes for appscript-1.0.1-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2eebf86d105aac3d8d8a6c7d545c1cf4fdecf943ededf174223e6eeb79ed3a4 |
|
MD5 | 7030fc6dbb0c9c8413763223a2f49de1 |
|
BLAKE2b-256 | 685331262bf817881753ea032a79d71d22e1f6cf431ebbafc0d446b6a0ff59e9 |