
To download and install py-appscript via setuptools, run the following command in Terminal:
sudo easy_install appscript
Setuptools is included in Leopard's standard Python 2.5 installation and Snow Leopard's standard Python 2.6 installation. For other Python distributions, you may need to install setuptools first.
Setuptools will download and build py-appscript from source. Note that building py-appscript from source requires gcc, included in Apple's Developer Tools.
Additional documentation and examples can be found in the latest .tar.gz source release.
Download the latest .tar.gz source release from the Python Package Index and follow the instructions in its README file.
gcc compiler, included in Apple's Xcode developer tools. You can find an Xcode installer on your Mac OS X installation disk, or download the latest version from Apple's website.export CC=/usr/bin/gcc-4.0 before running the install command. Alternatively, you may prefer to build your own Python framework using the 10.5 or 10.6 SDK.easy_install produces errors like this: "No eggs found in /tmp/... (setup script problem?)", you may need to update setuptools first (sudo easy_install -U setuptools).To check out py-appscript's subversion repository:
svn checkout \
https://appscript.svn.sourceforge.net/svnroot/appscript/py-appscript/trunk \
py-appscript-trunk
To check out the related py-aemreceive, py-osascript and py-osaterminology projects for Python 2.x:
svn checkout \
https://appscript.svn.sourceforge.net/svnroot/appscript/py-aemreceive/trunk \
py-aemreceive-trunk
svn checkout \
https://appscript.svn.sourceforge.net/svnroot/appscript/py-osascript/trunk \
py-osascript-trunk
svn checkout \
https://appscript.svn.sourceforge.net/svnroot/appscript/py-osaterminology/trunk \
py-osaterminology-trunk