I was recently perusing my /var/log/system.log file under OS X Snow Leopard (OS X 10.6.6), also available by running the Console application in your Utilities folder and selecting system.log, when I noticed several error messages that bothered me:
osascript: Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:\n /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper Safari: Initializer-based scripting additions have been deprecated. Please update this addition: "/Library/ScriptingAdditions/Adobe Unit Types.osax"
That last message basically told me what to do. Now I’ll make it easier for you.
I found this forum thread at Adobe (http://forums.adobe.com/thread/486208). Without forcing you to read the whole thing, a poster named “Zaph0n” had this to say, “It’s not that osascript is doing anything wrong, it’s simply the fact that it’s running the x86_64 binary, and the Adobe Unit Types Scripting Addition doesn’t have that binary mode compiled in.” In layman’s terms, this Addition is out-of-date and is missing what is required to run without errors under Snow Leopard, a 64-bit Operating System.
Adobe is providing an upgrade for their Scripting Addition, available here: http://kb2.adobe.com/cps/516/cpsid_51615.html
Unfortunately, there is no installer, so you’ll have to download it, unzip it, and then copy it to the /Library/ScriptingAdditions directory. You’ll be required to authenticate in order to make changes to this directory, I also had to delete the older one before copying the new one into place. You should also reboot after making the update.