Accessibility

TechNote

Error about unit type conversion occurs when you run an AppleScript in Photoshop (Mac OS X 10.6)

Issue


When you run an certain AppleScripts in Adobe Photoshop CS4 or CS3, an error displays in the OS X Console about unit type conversion, such as "Can't make 720 into type tradional points."

Reason


The Adobe Unit Types.osax file that shipped with Photoshop CS4 and CS3 is a 32-bit component. Mac OS X 10.6 (Snow Leopard) requires some scripting environments to be 64-bit. 

Solution


 

Solution 1: Update the Adobe Unit Types.osax to version 2.1.0.

  1. Download the Adobe Unit Types.osax version 2.1.0 file from this technote. 
  2. Choose /Library/ScriptingAdditions.
  3. Move the existing Adobe Unit Types.osax file to a backup location.
  4. Copy the downloaded version of the Adobe Unit Types.osax file to the /Library/ScriptingAdditions folder. Select Yes to authenticate this operation.
  5. Restart your computer.

 

Solution 2: Run AppleScript Editor in 32-bit mode.

  1. Choose Get Info on the AppleScript Editor.
  2. Select Open in 32-bit mode.

Solution 3: Us the Arch command in your command line tool.

  • Instead of executing "osascript xx", execute "arch -i386 osascriptxx". 

 

Adobe Unit Types version 2.1.0

 


 

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:cpsid_51615
OS:Mac OS 10.6

Products Affected:

photoshop
photoshopextended