64 bit issues running osascript from terminal

If you use osascript to run applescript from the command line, you may have run into errors looking something like:

Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: ... no matching architecture in universal wrapper

This is due to osascript running in 64 bit mode and being unable to load a 32 bit addition. A quick fix is to force osascript to use i386 architecture, like so:

arch -i386 osascript path/to/applescript

In addition, you can now eliminate the error referenced above by downloading the latest 64 bit Adobe Unit Types.osax from the Adobe site.

Here’s hoping the 64 bit transition goes smoothly for all involved. I’m thinking the performance payoffs will make these little workflow snags worth the effort.

1 Comment

  1. It is also worth noting that if you run osascript from an After Effects CS5 script you will hang the app, so always use arch -i386 osascript or you will have some unhappy campers.

RSS feed for comments on this post

Comments are closed.