Posted on 11-04-2014 09:51 AM
I'm using a modified version of Rich Trouton's first_boot script to test a bunch of configurations for a new Yosemite build.
At the moment I'm having a problem with PlistBuddy and changing some desktop defaults. It seems that the first two settings in the com.apple.finder.plist give an error, but the third is fine.
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" "${USER_HOME}"/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" "${USER_HOME}"/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" "${USER_HOME}"/Library/Preferences/com.apple.finder.plist
Is this and issue with PlistBuddy or with the plist file or with Yosemite?
One thought is that maybe those arrays (?) don't exist in the default plist file, and PlistBuddy can't add them?
Posted on 01-04-2015 03:28 AM
@cwaldrip, you'll probably be hitting OSX's preference caching. (https://macmule.com/2014/02/07/mavericks-preference-caching/).
It depends on what you're targeting with the script & what errors you were getting.
PlistBuddy is still valid when modifying unloaded plists.