On Feb 13, 2009, at 4:30 PM, Chunk 1978 wrote:

is this possible?  it seems that programatically changing
com.apple.desktop.plist (Background > Default > Change) from
TimeInterval to Never will not override the settings in System
Preferences.  i though applescript could be an option but it seems
that using an applescript to accomplish this would have to open the
system preferences window.  it's only ideal if it's done as a
background process.

No, changing the preferences file certainly won't prompt the preferences to be reloaded. You need to go through the preferences system itself. You're essentially trying to change an open text document's content in a text editor by rewriting its file on disk ...

http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/UserDefaults/Concepts/DefaultsDomains.html

I don't know if all defaults domains are available for manipulation, but you need to go through the defaults system instead of modifying files behind its back.

--
I.S.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to