• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically Uncheck "Change Picture" In Desktop Settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Programatically Uncheck "Change Picture" In Desktop Settings? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: NSCollectionView inside an NSSplitView?
  • Next by Date: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Previous by thread: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Next by thread: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Index(es):
    • Date
    • Thread