Mac OS X Lion: Disable Resume per Application
After I upgraded to Lion I did use Quicktime a couple of times, the Quicktime X Player that is. It worked mostly as expected but I noticed after quitting and restarting, that the Resume feature was really getting in the way.. The Player re-opened all the old movies I've already watched. That's certainly not what I wanted and certainly not very efficient in order to "resume" anything. So I poked around and found this guide to disable the feature:http://hjerpbakk.blogspot.com/2011/08/disable-os-x-lion-resume-per.html
Resume on Application basis
Let me document again what needs to be done to disable Resume on an application basis:
- In System Preferences this setting can be disabled system wide by disablingGeneral > Restore windows when quitting and re-opening apps.
- Pressing Option when quitting an application from the menu or using Cmd+Q will disable Resume for the last session. Cmd+Q = quit and resume later,Opt+Cmd+Q = quit and forget the open windows.
- From the Terminal the Resume functionality can be disabled on a per application basis by using the command: defaults write [application identifier] NSQuitAlwaysKeepsWindows -bool false. For example defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false will disable Resume for QuickTime after a restart. Issuing the command again usingtrue instead of false, will re-enable Resume for the application.
Finding the application identifier
In order to find the application identifier to use in the command above, Activity Monitor can be used.
- Open Activity Monitor
- In the main view select the Application where you would like to get the App Identifier from
- Click "Sample Process"
- Make sure in the Display drop-down "Sample Text" is selected
- Look for the "Identifier:" information and there you have the text you need to insert into above command.
Resume General Preference:
- Open System Preferences
- General
- In the second to last section de-select: "Restore Windows when quitting and re-opening apps"