How to disable resume per application!

Discussion in 'Mac OS X Lion (10.7)' started by petvas, Aug 12, 2011.

Thread Status:
Not open for further replies.
  1. petvas macrumors 601


    Jul 20, 2006
    Mannheim, Germany
    Just look here:

    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 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.
  2. saving107 macrumors 603


    Oct 14, 2007
    San Jose, Ca
  3. maflynn Moderator


    Staff Member

    May 3, 2009
Thread Status:
Not open for further replies.

Share This Page