Disable Resume for applications

To disable the auto-resume "feature" of a program in (Mountain) Lion run the following in terminal:

For example: Safari
defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool false

To delete a state, or to find the name look in: ~/Library/Saved Application State
there you will find for example a folder: com.apple.Safari.savedState