Using appscript with Mac OS X 10.4 (Tiger)

The Python appscript module brings AppleEvent support into Python, making it possible to communicate with many Mac applications from Python code.

Unfortunately, like many things, it has broken under Tiger.

Fortunately, the fix is easy.

What broke?

The Python install on 10.4 looks for packages in /Library/Python/2.3/site-packages/, where the 10.3 install looks in /Library/Python/2.3/. Appscript Installer 1.01 installs its libraries in /Library/Python/2.3/.

How do you fix it?

Go to /Library/Python/2.3/. Move the following into the site-packages directory:

  • HTMLTemplate.py
  • HTMLTemplate.pyc
  • LaunchServices
  • aem
  • appscript
  • osaterminology
  • osax

That’s it! Now your Python code can once again use appscript.

Comments are closed.