Re: Manual for Defaults command
Re: Manual for Defaults command
- Subject: Re: Manual for Defaults command
- From: Jens Alfke <email@hidden>
- Date: Mon, 20 Jul 2015 14:31:15 -0700
> On Jul 20, 2015, at 1:45 PM, John Richardson <email@hidden> wrote:
>
> Is there a manual on the developer website that gives all the options for the defaults command?
> Example: defaults write com.apple.doc ?????? where the question marks are the options and their values/parameters.
The documentation for the ‘defaults’ command can be viewed by running the shell command:
man defaults
If you mean all the different keys, there isn’t any canonical list. Every application makes up its own keys.
> Is it simply a matter of looking at the plist file for the dock? [and the plist file for mail,…]
User defaults don’t have anything to do with the plist. The keys an app recognizes are simply the keys that it passes to NSUserDefaults to read and write values. You’d have to disassemble the app’s code and find all the calls to NSUserDefaults and the string constants given to those calls as keys — good luck!
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden