Setting user level ByHost/.GlobalPreference entry

CypherCookie
Contributor

I'm trying to write a default colour profile entry into

/Users/Library/Preferences/ByHost/.GlobalPrefence

Does anyone have an easy single fire solution to this? Or is the only way around this to package up the plist and push it out to each machine when a user logs in?

1 ACCEPTED SOLUTION

rtrouton
Release Candidate Programs Tester

PlistBuddy is in /usr/libexec on 10.8.x. You may need to include the path when calling it in a script:

/usr/libexec/PlistBuddy runs_this_command

View solution in original post

4 REPLIES 4

jarednichols
Honored Contributor

Plistbuddy is a great way to go to script the addition to it. It may take a bit to wrap your head round, but it's effective.

CypherCookie
Contributor

Hi Jared, we unfortunately have to use OS X 10.8. Plistbuddy is not as standard in this OS and from what i can see isn't available for 10.8. Any other ideas on how to get around this?

rtrouton
Release Candidate Programs Tester

PlistBuddy is in /usr/libexec on 10.8.x. You may need to include the path when calling it in a script:

/usr/libexec/PlistBuddy runs_this_command

CypherCookie
Contributor

Thanks rtouton! I'll check that out and let you know how i get on with it!