Skip to Main Content
Running Mac OS X Tiger
book

Running Mac OS X Tiger

by Jason Deraleau, James Duncan Davidson
December 2005
Intermediate to advanced content levelIntermediate to advanced
400 pages
11h 33m
English
O'Reilly Media, Inc.
Content preview from Running Mac OS X Tiger

Determining Preference Keys

Editing preferences in the defaults database is a chicken-and-egg problem. Without knowing the key to set a preference for, it’s hard to customize an application’s behavior. Setting preference keys randomly won’t accomplish much except to fill your defaults database with useless data. To determine which keys can be set, you have to do a bit of research. Three methods will help you determine the preference keys an application might use:

  • Looking at the preference plist files after you’ve customized an application

  • Searching the Web

  • Digging into the application itself

The first of these methods is fairly self-explanatory. Simply fiddle with the various settings of the application and watch the plist file to see what changes. Once you have an idea of the ways that keys are named, you can use the defaults find command. This command searches through the defaults database and returns the preference file and data associated with any particular string. For example, if after tweaking the opacity of your Terminal windows, you searched for the string Opaque, you would find the key in the com.apple.Terminal domain, as shown in Example 14-11.

Example 14-11. Searching for a string in the defaults database

$ defaults find Opaque
Found 1 keys in domain 'com.apple.Terminal': {TerminalOpaqueness = 0.7783334; }

If other applications used keys with the string Opaque, they would also be listed.

The second of these methods is also straightforward—using the Web. The Mac OS X Hints web ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Apple Training Series Mac OS X Directory Services v10.5

Apple Training Series Mac OS X Directory Services v10.5

Arek Dreyer

Publisher Resources

ISBN: 0596009135Catalog PageErrata