Mac OS X Power Tools

There are many things that can go wrong with applications; although I generally shy away from troubleshooting information in the book, I'm going to briefly talk about the two most common application problems: freezes and corrupt preference files.

Dealing with Application Freezes

If an application crashes, it will usually quit automatically; you can generally just relaunch it and get back to work. However, sometimes the offending application won't quit—it will just sit there, unresponsive. In this scenario, the only way to get the application to quit is using a force quit. Whereas a standard quit (one you, as the user, initiate) allows you to save documents and allows the OS to elegantly stop the application, a force quit simply kills the application on the spot. You don't get to save any open documents, and any preferences you may have set during that session may not get written to the preference file. A force quit isn't graceful, but if it's the only way to quit a misbehaving app, it's quite useful.

You can force quit an application using three methods:

Note 

You can also force an application or process to quit using Terminal; I'll talk about that in Chapter 15.

Dealing with Bad Preference Files

A corrupt preference file can cause its corresponding application to misbehave; this is one of the most common causes of application problems in OS X. Why a preference file goes bad—a previous application crash, hard drive problems, etc.—isn't as important as what to do when it happens.

As I mentioned in Chapter 2, preference files are stored in /Library/Preferences (for system-wide preferences) and ~/Library/Preferences (for user-level preferences), and generally have the name of the application in the filename. For example, com.apple.TextEdit.plist is the preference file for TextEdit. If you're having continual problems with a particular application, its preference file should be the primary suspect. Locate its preference file in the Preferences folder (you can use the Search field from a Finder window toolbar as described in Chapter 5 to find it quickly), and then drag it to the Desktop. Launch the application; if the problems are gone, you know the preference file you moved to the Desktop was the culprit, so you can delete it permanently (a new one was created when you launched the application). If the problems still exist, the preference file wasn't the cause (you can quit the application and replace the original preference file).

Note 

Note that preference files in the main /Library folder can only be deleted by an admin user.

Категории