Lion saves your Applications in the state they were in when they were quit, or you lost power, or your cat peed on your keyboard.
That’s great for the most part – but there are some apps I just don’t want to save the state of. When I quit, I really want to quit. Those windows no longer mean anything to me and I want them dead.
Lets take Safari for example – I have no desire to reopen it to find the 30-odd tabs I had open previously (I’m a messy browser).
Open up a Terminal and perform the following commands:
cd ~/Library/Saved\ Application\ State/
rm com.apple.Safari.savedState/*
chmod -w com.apple.Safari.savedState
Obviously you can change ‘com,apple.Safari.savedState’ to any application you want to remove this behaviour for. You can find a list of apps with current saved states by running:
ls -l ~/Library/Saved\ Application\ State/
Now next time you quit Safari Lion will be unable to save the Application State and all will be right with the world again. I understand why Apple put this behaviour in, but it would make more sense to me to only occur if an application crashes or you lose power suddenly.
UPDATE :: Fix for Preview:
For whatever reason Preview doesn’t appear under ~/Library/Saved Application State. Instead it lives in it’s own little world in ~/Library/Containers/com.apple.Preview/Data/Library/Saved Application State/com.apple.Preview.savedState.
Fire up Terminal and run the following:
cd ~/Library/Containers/com.apple.Preview/Data/Library/Saved\ Application\ State/
rm com.apple.Preview.savedState/*
chmod -w com.apple.Preview.savedState
You may even need to run the ‘rm’ command as sudo, my user didn’t have access to delete the saved states!

This is very useful — thanks! One thing, though: do you know how to do this for preview? Preview doesn’t show up in the list of apps with saved states, but it definitely has one…which I noticed after I accidentally bombarded myself with pr0nz.
Thanks so much! What does command-option-q do? I know command-q, and command option shift q, but not just cmd-opt-q…just wondering. Thanks again though, man.
Has anyone figured out why Preview isn’t an option here? How can you apply this to Preview?
I can’t find Firefox in either the Containers folder or the Saved Application States folder. I have several links pinned but when I reopen Firefox it opens the pinned links but it opens then again in tabs. I like the minimized tabs.
Yes, I did look for Mozilla.
@ Diane mine works fine with pinned app tabs on restart.
i love you
My issue was perhaps dealing with this, but it needed a little more. I did as you said (I’d been looking for that saved state folder with no luck!), but Preview kept opening all the files listed as recently opened, though it hid all the windows. After I cleared the recent files menu, I tried to quit and discard all windows. The menu said that command+option+q would actually quit and save all windows, but they finally went away! I had tried just quitting and discarding all windows before, but it didn’t work. There must be something about the combination of these steps.