Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Disable Resume on a per-application basis System 10.7
Lion's new Resume feature is great, but sometimes, you don't want it to happen, or maybe just for some applications.

First: To disable Resume for one time only in any application, Quit the app while holding the Option Key. This works from the menu or with Command+Option+Q.

Now, what if there's an app you never want to restore to its previous state, but you still want resume turned on? You can easily accomplish this with Terminal.

Open Terminal in /Applications/Utilities and type:

defaults write com.[vendor].[AppName] ApplePersistenceIgnoreState YES

For example with Safari you'd type this:

defaults write com.apple.Safari ApplePersistenceIgnoreState YES

It's not guaranteed to work on apps that aren't updated for Lion (though they're not guaranteed to work with Resume either). Sometimes it's tricky to find how the vendor spells their name in this format so you can locate the preferences file for the app in ~/Library/Preferences (using any method you'd like to open that folder) and scroll through the list of files to find the application you're looking for and then head back to Terminal.

It's recommended that you change app settings with the app closed, and restarting the app will be necessary before it takes effect. If you wish to change the setting back to the way it was, run the command again using NO instead of YES.

[crarko adds: I tested this, and it works as described. This is a good find.]
    •    
  • Currently 3.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[13,799 views]  

10.7: Disable Resume on a per-application basis | 6 comments | Create New Account
Click here to return to the '10.7: Disable Resume on a per-application basis' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Disable Resume on a per-application basis
Authored by: karog on Aug 12, '11 08:38:53AM
To find the string that follows the write, Ctrl-click the app and choose Show Package Contents. In the new Finder window, select the Contents folder and then select Info.plist. Hit the space bar to get a quick look. Find the CFBundleIdentifier key and its string value is what you are looking for.

If you have Xcode installed, you can just double click Info.plist to open it with the Property List Editor.app.

[ Reply to This | # ]

10.7: Disable Resume on a per-application basis
Authored by: Lri on Aug 12, '11 09:45:27AM

You can also get the bundle identifier with AppleScript:

getbid() { osascript -e "id of app \"$*\""; }



[ Reply to This | # ]
10.7: Disable Resume on a per-application basis
Authored by: MikeFromAmerica on Aug 12, '11 10:11:14AM

What the difference between this and other hints I've seen that use:

defaults write com.[vendor].[AppName] NSQuitAlwaysKeepsWindows -bool false

Does it do the same thing?



[ Reply to This | # ]
10.7: Disable Resume on a per-application basis
Authored by: gadgetdoctor on Aug 12, '11 10:01:45PM

On first loading Lion I had huge trouble with Office 2008 quitting on launch especially with Excel files. I tend to launch my favorites from QuickSilver by typing a couple of characters of their filename.

Only after turning off the resume feature system wide did I get Office 2008 stable again.

I will try this hint to see if I can turn it back on for all except Microsoft stuff that seems to throw a wobbly with it.



[ Reply to This | # ]
10.7: Disable Resume on a per-application basis
Authored by: afb on Aug 13, '11 02:19:29AM

How is ApplePersistenceIgnoreState set to true different from NSQuitAlwaysKeepsWindows set to false?



[ Reply to This | # ]
10.7: Disable Resume on a per-application basis
Authored by: rafa espada on Aug 16, '11 04:24:33AM

you can avoid the restore application's status if when you open the applicacion you have pressed the "shift" key.

---
rafa espada
http://www.rafaespada.com



[ Reply to This | # ]