DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS

OSXFAQ Mac OS X Tip-of-the-Day  

Where Are Those Files? - Preferences

By Adrian Mayo - Editor - OSXFAQ

Preference files are where applications store their settings and current state. They are generally in a file ending with '.plist' and are human-readable.

Double-clicking a plist file opens the Property List Editor allowing you to view and edit a preference file. (Note: PLE is part of the Developer Tools install). Plist files can also be opened in TextEdit, or any other text editor.

Bad plist files can cause applications to crash, so the first step in trouble shooting is often to trash (or move) a suspect plist file.

Where do they live?

1) 'Library:Preferences' in Your home folder This holds plist files specific to you.

2) 'Library:Preferences' at the top level of your system disc This holds system plist files applicable to all users (and usually require root permissions to modify).

If you are handy with the Terminal, this nifty command can be used to sniff out obviously bad preference files.

$ cd ~/Library/Preferences
$ find . -name "*.plist" -exec plutil -lint {} \; | grep -v ": OK"
./bad.plist:
XML parser error:
Unexpected character { at line 1
Old-style plist parser error:
Expected terminating '}' for dictionary at line 1
$

Preference files can be read and edited from the command line with 'defaults'.

$ man defaults

will tell you more.

How are preference files named?

To avoid name clashes between different software vendors, a preference file is named according to the vendors domain name. Hence Apple use:

com.apple.application-name.plist

Enjoy !! :-)

Panther 10.3.6

To discuss this tip in the OSXFAQ Mac OS X Tip-of-the-Day Forum, click here:

http://forums.osxfaq.com/viewforum.php?f=100

E-mail your comments or suggestions to webmaster@osxfaq.com

Copyright © 2000-2010 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.