Re: Programatically Uncheck "Change Picture" In Desktop Settings?
Re: Programatically Uncheck "Change Picture" In Desktop Settings?
- Subject: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
- From: "I. Savant" <email@hidden>
- Date: Fri, 13 Feb 2009 16:42:18 -0500
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 (email@hidden)
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:
This email sent to email@hidden