Property Lists

User-defined property lists are stored in ~/Library/Preferences, and the appropriate plist is called up when an application launches. Property lists can contain literal preferences set through the application’s ApplicationPreferences dialog, or subtler things such as window coordinates or the state of an option (such as whether to display the battery menu extra in the menu bar, as shown in Example 13-1).

Example 13-1. The file in XML format
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
<plist version="1.0">

Each property list is named after its domain, the unique namespace that an application uses when working with its preference files . Domains can look like any string, but the Apple-recommended format is similar to a URL, just in reverse. The naming convention is based on the developer’s company or organization’s name, using the application’s name as the domain. All of the plist files for the System Preferences and other iApps use the syntax domain .plist, where domain is the name of the service or application. For example, the plist file for the Dock’s preferences is, while the preferences file for OmniGraffle (if you have it installed) is com.omnigroup.OmniGraffle.plist.


Not all application ...

Get Mac OS X Tiger in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.