In Snow Leopard, how can I force reloading of ~/Library/Preferences/ByHost/.GlobalPreferences[blah blah].plist without logging out/in?
For example, since System Preferences can't be scripted except by using AppleScript's slow and clumsy UI scripting, I often find it advantageous to alter things like Keyboard:Modifier keys by using PListBuddy and other unix tools to alter the plist file directly.
Unfortunately, .GlobalPreferences[blah blah].plist files are normally loaded only at logon, which obviates the whole point of changing them.
When changing applications prefs under the hood, quitting the app before doing so and then reopening it after the change does the trick. In the case of ~/Library/Preferences/ByHost/.GlobalPreferences..., however, I'm not clear what application is doing the work.
Thanks,
Bryan
For example, since System Preferences can't be scripted except by using AppleScript's slow and clumsy UI scripting, I often find it advantageous to alter things like Keyboard:Modifier keys by using PListBuddy and other unix tools to alter the plist file directly.
Unfortunately, .GlobalPreferences[blah blah].plist files are normally loaded only at logon, which obviates the whole point of changing them.
When changing applications prefs under the hood, quitting the app before doing so and then reopening it after the change does the trick. In the case of ~/Library/Preferences/ByHost/.GlobalPreferences..., however, I'm not clear what application is doing the work.
Thanks,
Bryan