This post advises why you may need to update the Adobe Unit Types.osax file & how to do so using Casper.
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 64-bit scripting environments.
This file is placed in /Library/ScriptingAdditions/ & can cause Applescripts to fail to run.
Both Adobe & JAMF have posted help docs on how to fix this & this post is to advise how I’ve deployed to corrected osax file to affected machines.
Guides
If your already a competent Casper User follow the Short Guide, if not follow the Step By Step Guide.
Short Guide
- Download Adobe Unit Types.osax 2.1.0 from here.
- Copy the downloaded Adobe Unit Types.osax file to /Library/ScriptingAdditions/
- Whilst the newly downloaded Adobe Unit Types IS 2.1.0 Adobe haven’t updated the CFBundlVersion in the Info.plist, we can do this via the following in terminal: defaults write /Library/ScriptingAdditions/Adobe\ Unit\ Types.osax/Contents/Info CFBundleVersion 2.1.0
- Open “Composer” & create a DMG of /Library/ScriptingAdditions/Adobe Unit Types.osax called “Adobe Unit Types 2.1.0.osax” .
- Add “Adobe Unit Types 2.1.0.osax 2.1.0.dmg” to Casper Admin & index.
- Set priority to “12,” set stage to “Deployable,” Tick “Allow this package to be uninstalled by Casper or a Policy,” set “OS Requirements” to “10.6.x” & tick “Install Only if Processor is:” & from the drop down list to the right select “x86.”
- Save & close Casper Admin.
- Login to JSS.
- Create an Extension Attribute called “Adobe Unit Types” with the contents of the Extension Attribute at the end of this post.
- Create two smart groups, one scoped to “Operating System” is like “10.6,” Extension Attribute “Adobe Unit Type” is “2.0.0” & named “Adobe Unit Types 2.0.0 Installed 10.6” the other group scoped to “Operating System” is like “10.6,” Extension Attribute “Adobe Unit Type” is “2.1.0” & named “Adobe Unit Types 2.1.0 Installed 10.6.”
- Create a policy triggered by the “every15” trigger, executed “Ongoing” scoped to the “Adobe Unit Types 2.0.0 Installed 10.6” installing the “Adobe Unit Types 2.1.0.osax 2.1.0.dmg” & updating inventory afterwards.
Step by Step Guide
- Download Adobe Unit Types.osax 2.1.0 from here.
- Copy the downloaded Adobe Unit Types.osax file to /Library/ScriptingAdditions/
- Whilst the newly downloaded Adobe Unit Types IS 2.1.0 Adobe haven’t updated the CFBundlVersion in the Info.plist, we can do this via the following in terminal: defaults write /Library/ScriptingAdditions/Adobe\ Unit\ Types.osax/Contents/Info CFBundleVersion 2.1.0
- Open “Composer” & authenticate as a local admin when prompted.
- Once changed, created a DMG of the Adobe Unit Types folder by dragging /Library/ScriptingAdditions/Adobe Unit Types.osax into Composer.
- In the sources list, rename the dmg “Adobe Unit Types 2.1.0.osax”
- With “Adobe Unit Types 2.1.0.osax” selected, click the “Library folder” in Composers main pane.
- Next click the gear icon at the bottom of the Composer window & from the drop down list select “Apply Permissions to “Library” & all enclosed items.”
- Click “Build as DMG” to the lower right of the Composer screen.
- Save the “Adobe Unit Types 2.1.0.osax 2.1.0.dmg” to your Desktop.
- Close Composer.
- Open Casper Admin & authenticate as to your JSS when prompted.
- Drag the “Adobe Unit Types 2.1.0.osax 2.1.0.dmg” to Casper Admins centrally located packages pane.
- Find the “Adobe Unit Types 2.1.0.osax 2.1.0.dmg” dmg in the list of packages (name should be in blue) & single click it.
- With “Adobe Unit Types 2.1.0.osax 2.1.0.dmg” selected, click the “Index” button to the bottom right of the Casper Admin window.
- Authenticate as a local admin when prompted & wait for the indexing process to complete.
- Once complete double click “Adobe Unit Types 2.1.0.osax 2.1.0.dmg”
- A window should now appear titled: “Information for Adobe Unit Types 2.1.0.osax 2.1.0.dmg.”
- Click the “Info” tab & enter details in the “Info” & “Notes” text fields for the DMG as per your usual convention.
- Under “Category” click the drop down list & select an appropriate catergory.
- Click the “Options” tab.
- To the right of the “Priority:” field select “12” from the drop down list.
- To the right of the “Stage:” field select “Deployable” from the drop down list
- Tick “Allow this package to be uninstalled by Casper or a Policy”
- In the “OS Requirements:” text field enter “10.6.x”
- Tick “Install Only if Processor is:” & from the drop down list to the right select “x86”
- To the right “If the target computer is not x86” select “Do not install” from the drop down list.
- Click “OK”
- Quit Casper Admin clicking “Save” when prompted.
- Once DMG has been uploaded, open JSS Web Page & login.
- Once logged in click Settings > Inventory Options > Inventory Collection Preferences > Extension Attributes & create a new Extension Attribute called “Adobe Unit Type.”
- To the right of the “Input Type:” field select “Populated by Script” from the drop down list.
- In the “Mac OS X Script Contents” copy the contents of the Extension Attribute at the end of this post
- Next create a Smart Group by clicking Management > Smart Computer Groups > Create smart Group.
- Enter “Adobe Unit Types 2.0.0 Installed 10.6” in the group name you like in the Computer Group Name field.
- Click the “+” to the right of “OS Configuration Information.”
- Select “Operating System” from the list.
- Once returned to the Edit Smart Group screen change the option next to “Operating System” to “like” & in the text field enter “10.6.”
- Click the “+” to the right of “Extension Attributes Information.”
- Select “Adobe Units Type” from the list.
- Once returned to the Edit Smart Group screen change the option next to “Adobe Units Type” to “is” & in the text field enter “2.0.0.”
- Click “Save”
- Repeat steps 34-42 with replacing “2.0.0” with “2.1.0” where it exists.
- You’ll now have all the Smart Groups needed for this & will be ready to create a Policy to deploy Adobe Unit Types.osax 2.1.0 to all 10.6 Macs running the older version.
- Click > Management > Policies > Create Policy > select “Create Policy Manually” > Continue.
- Under “Display and Execution Settings” in the field “Display Name” type: “Install Adobe Unit Types.”
- In the “Category” drop down list select an option that’s applicable for your environment.
- In the “Triggered By” field select “The every15 trigger.”
- In the “Execution Frequency” field select “Ongoing.”
- Select “Scope” from the row of icons.
- Under “Assign to Specific Computers” click “Add Computer Groups.”
- Tick the box next to the Smart group “Adobe Unit Types 2.0.0” installed.
- Click “Add Computer Groups”
- Select “Packages” from the row of icons.
- Click “Add Package.”
- Find the “Adobe Unit Types 2.1.0.dmg” we created & uploaded to Casper Admin.
- In the “Action” field to the right of “Adobe Unit Types 2.1.0.dmg” select “Install” from the drop down list.
- Click “Add Package(s)” at the bottom of the web page.
- Select “Advanced” from the row of icons.
- Tick “Update Inventory”
- Click “Save”
Phew..
The policy will now install “Adobe Unit Types 2.1.0.osax.dmg” on all macs that have Adobe Unit Types 2.0.0.osax installed & are 10.6. once installed the last update inventory command will remove them from the “Adobe Unit Types 2.0.0 Installed 10.6” smart group & add them too the “Adobe Unit Types 2.1.0 Installed 10.6” group.