The corresponding keys in a preference file are stored in a file called .GlobalPreferences.plist
in your user's Preferences folder. You can if you want to copy this file to Dropbox (I highly suggest dropping the period in front of it when copying it to your Dropbox) and copy that to the user's Preferences folder. There are several other items that are stored in that file that you may inadvertently reset so I would recommend using a script to run the defaults
command to apply your desired changes.
I'd recommend opening the .GlobalPreferences.plist file in Property List Viewer (part of the Developer Tools), or in your favourite text editor (after converting from a binary plist to an xml one to make reading the values much easier - plutil -convert xml1 ~/Library/Preferences/.GlobalPreferences.plist
)
Copying File
cp ~/Library/Preferences/.GlobalPreferences.plist ~/Dropbox/GlobalPreferences.plist
# On Next Computer
cp ~/Dropbox/GlobalPreferences.plist ~/Library/Preferences/.GlobalPreferences.plist
Defaults Command
#!/bin/sh
#Example from my .GlobalPreferences
/usr/bin/defaults write ~/Library/Preferences/.GlobalPreferences.plist AppleLocale -string "en_CA"
/usr/bin/defaults write ~/Library/Preferences/.GlobalPreferences.plist AppleICUDateFormatStrings -dict 1 "MM/dd/yy"
Not being familiar with the other keys involved I can't say what the other bits are but if you'd like to post the output of
usr/libexec/PlistBuddy -c Print ~/Library/Preferences/.GlobalPreferences.plist
to Paste Bin or somewhere else I can offer to help fill in the missing defaults commands. I'd also recommend cleaning the output of items such as NSNavRecentPlaces for when posting publicly.
Thanks, that can sure get me started. Unless someone figures out a way to create a new region entirely, going with a script calling defaults sounds like the best way to go. I'll inspect the plist later and try to figure out all the keys. – kch – 2009-08-13T14:51:36.230