10-14-2010
10,
0
Join Date: Oct 2010
Last Activity: 23 July 2011, 12:05 AM EDT
Posts: 10
Thanks Given: 0
Thanked 0 Times in 0 Posts
Editing System Preference in Terminal
Mac OS X 10.6: Leopard - I'm trying to create a script that will run on its own that can edit system preferences. I've done some digging, and found that a lot of system preference options are controlled by .plist files in ~/library/preferences, /library/preferences, and /system/library/preferences. However, I have yet to figure out how to edit certain functions. Specifically:
Turn on/off file sharing
Change screen saver
And some other functions like those.
My problem is twofold: For one, I can't find the file sharing plist file, and, secondly, I can't figure out a way to edit the plist files such that it makes any difference. For example, I found the plist file for screen saver, but try as I might, I couldn't get editing it to do what I wanted. And this was using plist editor. I'd imagine that once I try to port this to command line, it'll be even harder (presumably using the defaults write command). Any suggestions?