10.5: How to update raw.plist modifications in 10.5
Nov 07, '07 07:30:00AM
Contributed by: Anonymous
All the previously hinted changes to the Raw.plist file will still work in 10.5, with two little modifications:
- Raw.plist has moved to /System » Library » CoreServices » RawCamera.bundle » Contents » Resources/.
- Mac OS X 10.5 hashes many resource files and checks the hash to make sure the resource is intact before accepting it. So, after you've made your changes to Raw.plist and saved, you'll need to run the following command in the terminal:
openssl dgst -sha1 /System/Library/CoreServices/RawCamera.bundle/Contents/Resources/Raw.plist
This will print out the new hash you need, which you can then put into /System » Library » CoreServices » RawCamera.bundle » Contents » CodeResources. This file is a standard XML Property List, and has the various hashes entered in it as data.
Read on for the details on how to modify this file...
The absolute easiest way to get the has into this file is using Property List Editor (which is part of the Developer Tools install) to just paste in the hex string that you got out of the openssl digest. But if you don't have Property List Editor, you aren't out of luck.
Go ahead and open CodeResources in a text editor and find the hash object for Raw.plist. Now, the catch is, you can't just paste in the key you got out of openssl before, because data objects are base64 encoded before being saved to XML property list files. So, you'll need to use openssl to do a base64 encode as well. You can combine this with the above command into one giant command that looks like this:
openssl dgst -sha1 -binary /System/Library/CoreServices/RawCamera.bundle/Contents/Resources/Raw.plist | openssl enc -base64
Note the extra -binary flag to openssl dgst...
[robg adds: I haven't tested this one.]
Comments (1)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20071028133430814