Archive for May 1st, 2005

Seen at Copley Place

Where the theater used to be is going to be a Barneys New York. On the temporary wall that’s in place so they can do construction was this:

taste luxury humor

So, the question I have is: “what does luxury humor taste like?”

(The answer will probably be “chicken”.)

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.