Home/Support/

Forums

This Question is Answered

14 Replies Last post: Oct 1, 2009 3:52 AM by ranzadk  
onthefly666 User 3 posts since
Sep 2, 2009
Currently Being Moderated

Sep 2, 2009 7:55 AM

OS X 10.6, CS4, osascript and Adobe Unit Types Problem

Hi,

 

i am using OS X 10.6 and PS CS4.

 

I have written some scripts. They are working with 10.5. and CS4.

 

Since i have updated to 10.6 the script starts and then crashes.

 

The error message is:

 

/Library/Ruby/Gems/1.8/gems/applescript-1.0/lib/applescript.rb:32:in `execute': 2009-09-02 15:53:19.805 osascript[6521:903] 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: (AppleScriptError)
    /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
37:261: execution error: Adobe Photoshop CS4 got an error: Allgemeiner Photoshop-Fehler. Die Funktion steht in dieser Version von Photoshop möglicherweise nicht zur Verfügung.

 

I think the problem has something to to with the 64 bit architecture of OS X 10.6.

 

file Adobe\ Unit\ Types
Adobe Unit Types: Mach-O universal binary with 2 architectures
Adobe Unit Types (for architecture ppc):    Mach-O bundle ppc
Adobe Unit Types (for architecture i386):    Mach-O bundle i386

 

Does anyone have an idea ?

 

Thx,

 

Bjoern

Chris Cox Adobe Employee 3,319 posts since
May 20, 2006
Currently Being Moderated
1. Sep 2, 2009 3:56 PM in response to: onthefly666
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

You may be running the 64 bit kernel, and the unit types only has 32 bit binaries.

Welcome to Snow Leopard, where "transition strategy" is a four letter word.

robackja User 10 posts since
Apr 14, 2008
Currently Being Moderated
2. Sep 3, 2009 12:16 AM in response to: Chris Cox
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

I'm running a 32-bit kernel on Snow Leopard and I get the same error messages (running osascripts not even related to Adobe CS4 products)

 

loki:~$ uname -a

Darwin loki 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386

 

2009-09-02 23:10:51.123 osascript[708:903] 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:

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

osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.

Chris Cox Adobe Employee 3,319 posts since
May 20, 2006
Currently Being Moderated
3. Sep 3, 2009 4:04 PM in response to: robackja
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

Then that is bizarre.

robackja User 10 posts since
Apr 14, 2008
Currently Being Moderated
4. Sep 3, 2009 4:18 PM in response to: Chris Cox
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

Hardly bizarre. osascript is universal binary with 3 architectures, i386, ppc, and x86_64, whereas adobe's unit types is only i386/ppc. Adobe needs to update their binary. Running 32/64 bit kernel has nothing to do with 32/64 bit userland programs. 64-bit user programs can can run on a 32-bit kernel (that was even possible in Leopard, e.g. Lightroom 2.x) without issue.

 

 

loki-airport:~ $ file /usr/bin/osascript

/usr/bin/osascript: Mach-O universal binary with 3 architectures

/usr/bin/osascript (for architecture x86_64): Mach-O 64-bit executable x86_64

/usr/bin/osascript (for architecture i386): Mach-O executable i386

/usr/bin/osascript (for architecture ppc7400): Mach-O executable ppc


 

 

loki-airport:~ $ file /Library/ScriptingAdditions/Adobe\ Unit\ Types.osax/Contents/MacOS/Adobe\ Unit\ Types

/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: Mach-O universal binary with 2 architectures

/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types (for architecture ppc): Mach-O bundle ppc

/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types (for architecture i386): Mach-O bundle i386


Chris Cox Adobe Employee 3,319 posts since
May 20, 2006
Currently Being Moderated
5. Sep 3, 2009 4:23 PM in response to: robackja
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

What 64 bit application is loading the unit types extension?

It should be loaded by a system level service (32 bit).

 

And we're still working on the 64 bit transition.  We would have completed it a while back if Apple hadn't changed plans and made things a few orders of magnitude more difficult for developers.

robackja User 10 posts since
Apr 14, 2008
Currently Being Moderated
6. Sep 3, 2009 4:40 PM in response to: Chris Cox
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

It happens when a shell script of mine is run to update Textmate's bundles over subversion. If Textmate is running, the last thing the shell script does is tell Textmate to reload its bundles.

 

/usr/bin/osascript -e 'tell app "TextMate" to reload bundles'

 

osascript runs in 64-bit mode by default (even on 32-bit kernel) and these error messages get output all of the terminal/console/log. So Adobe products aren't even involved in this situation, but I guess osascript loads them all (or at least tries).

 

And, don't get me wrong. I'm not knocking Adobe. I know Apple dropped Carbon 64-bit support. Carbon is deprecated, as it should be in IMHO, so I am more than happy to go through some growing pains for the greater good. Adobe's application suite is probably one of the largest on the Apple platform and anyone who thinks the Cocoa + 64-bit transition would happen overnight is crazy. But that doesn't mean we (users, customers) shouldn't report our findings, problems, issues, bugs, etc. And I also realize CS4 on Mac platform is supposed to be 32-bit only, but its effecting my other paid applications, so I figured I'd report it.

 

Just that I am unaware of any public bug reporter/tracker like Apple's Bug Reporter tool, so I usually just browse around these forums. If this isn't the proper place for such reports, please by all means direct me to the correct place.

 

And maybe its Apple's fault. Maybe osascript shouldn't try loading 32-bit plugins when in 64-bit mode. This is probably the most reasonable. But I sure if I report this, Apple will tell me its Adobe fault for not having 64-bit binary. And back-and-forth we go...

Chris Cox Adobe Employee 3,319 posts since
May 20, 2006
Currently Being Moderated
7. Sep 3, 2009 4:43 PM in response to: robackja
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

Yes, it sounds like osascript might have some problems (not doing error checking and hoping the loader does all the work).

 

And you probably wanted https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Zaph0n User 1 posts since
Sep 7, 2009
Currently Being Moderated
9. Sep 7, 2009 6:11 PM in response to: Chris Cox
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

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.

 

But there is an easy work around until this is fixed.

 

Instead of running "osascript script.scpt" you can run "arch -i386 osascript script.scpt" which forces osascript to run in i386 mode, which the Scripting Addition does work with.  This work around was enough to keep me going, but it did catch me off guard.

Fuzzy Puppet User 1 posts since
Sep 7, 2009
Currently Being Moderated
10. Sep 7, 2009 7:13 PM in response to: Zaph0n
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

Zaph0n wrote:

 

Instead of running "osascript script.scpt" you can run "arch -i386 osascript script.scpt" which forces osascript to run in i386 mode, which the Scripting Addition does work with.  This work around was enough to keep me going, but it did catch me off guard.

 

Thank the Good Gerbil — that's exactly what I needed.

 

Nothing worse than a Console full of these goofy error messages. I have a launchd script that calls osascript every 30 seconds, so you can imagine the carnage.

 

It makes a lot more sense than drawing some mystical connection between iChat and Adobe, which is about as far as I could get on my own...

elitebox User 2 posts since
Sep 12, 2009
Currently Being Moderated
11. Sep 12, 2009 6:02 PM in response to: Fuzzy Puppet
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

Very nice solution.  How can you incorporate this to fix this error that appears every time that Safari tries to use the Flash Player Plugin v. 10.0.32.18:

 

 

9/12/09 7:43:38 PM Safari[791] 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:

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

 

 

9/12/09 7:43:38 PM [0x0-0x6d06d].com.apple.Safari[791] Safari: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.

 

 

9/12/09 7:49:06 PM osascript[813] 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:

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

netnothing User 8 posts since
Sep 29, 2003
Currently Being Moderated
12. Sep 24, 2009 7:11 AM in response to: onthefly666
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

First off, will this new KB article solve this:

http://kb2.adobe.com/cps/516/cpsid_51615.html

 

Second, why do I get these errors in Console when I'm not even using Applescript with Photoshop?

 

Sep 24 08:43:28 osascript[30432]: 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

 

Thanks!

 

-Kevin

Jesper Storm Bache User 4 posts since
Jun 5, 2009
Currently Being Moderated
13. Sep 30, 2009 7:08 PM in response to: onthefly666
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

FYI. You can get a 64 bit version of the Adobe Unit Types here: http://kb2.adobe.com/cps/516/cpsid_51615.html

ranzadk User 1 posts since
Oct 1, 2009
Currently Being Moderated
14. Oct 1, 2009 3:52 AM in response to: onthefly666
Re: OS X 10.6, CS4, osascript and Adobe Unit Types Problem

@Zaph0n thank you sir! that was just what i needed!

More Like This

  • Retrieving data ...