Geek Posted August 1, 2011 Posted August 1, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/08/turn-off-resume-mac-os-x-lion.gif" alt="Turn Off Resume on a Per App Basis in Mac OS X 10.7 Lion" title="turn-off-resume-mac-os-x-lion" width="556" height="60" class="aligncenter size-full wp-image-19589" /></p> <p>In our post on <a href="http://osxdaily.com/2011/07/31/disable-resume-specific-applications-mac-os-x-lion/">how to disable Resume for Safari or other applications</a> in OS X 10.7, several of our commenters pointed out that it isn’t necessary to change the individual app directories permissions. Alternatively, you can turn off Resume on a per-app basis using a defaults write command entered into the Terminal.</p> <h2 style="font-size:1.2em;">Turn Off Resume on a Per App Basis</h2> <p>Here are a few example defaults strings for individual applications, and then we’ll show you how to find your own strings for other applications:</p> <p><strong>Turn Off Resume for Safari</strong> <code>defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool false</code></p> <p><strong>Turn Off for Google Chrome</strong> <code>defaults write com.google.Chrome NSQuitAlwaysKeepsWindows -bool false</code></p> <p><strong>Turn Off for QuickTime Player X</strong> <code style="font-size:95%;">defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false</code></p> <p><strong>Turn Off for Preview</strong> <code>defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false</code></p> <p>You will want to relaunch whatever application you have disabled the feature for in order for changes to take effect.</p> <p><span id="more-19581"></span> <strong>Disabling Resume for Other Applications</strong> For disabling Resume with other applications, you will <a href="http://osxdaily.com/2011/07/22/access-user-library-folder-in-os-x-lion/">want access to your personal Library directory</a> (remember that /Library and ~/Library are different) so that you can find the exact app name syntax. The folder you are looking for is:</p> <p><code>~/Library/Saved Application State/</code></p> <p>I like the Go To Folder function since it’s easy to access with Command+Shift+G but you can get there through Option-Clicking on the Go menu too. </p> <p>Once you are in your personal library’s Saved Application State folder, what you are looking for is com.developerName.ApplicationName.savedState, for another example we’ll pick Terminal which is in this directory as com.apple.Terminal.savedState. </p> <p><img alt="Disable Resume per app in OS X Lion" src="http://osxdaily.com/wp-content/uploads/2011/07/disable-app-saved-state.jpg" title="Disable Resume per app in OS X Lion" class="aligncenter" width="620" height="265" /></p> <p>Discard the ‘.savedState’ extension and enter the first part of the directory name into the same command used above, so it will look like:</p> <p><code>defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool false</code></p> <p>Enter that into the command line and relaunch Terminal and Resume will no longer be activated for that app only. Just as the other method, you can do this with as many or as few apps as you want. </p> <h2 style="font-size:1.2em;">How to Turn Resume Back On for Specific Applications</h2> <p>Reenabling Resume in Lion is just as easy as turning it off, we just need to adjust the defaults write command with a TRUE statement rather than FALSE. Taking Safari as an example, the command would be:</p> <p><code>defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool true</code></p> <p>Again, relaunch Safari and you will find Resume is back on. Note that if you <a href="http://osxdaily.com/2011/07/18/disable-mac-os-x-lion-resume-window-restore/">turned off Resume on a system-wide basis</a> through the Preference panel, you will need to reenable that separately.</p> <p>Thanks to our commenters who pointed out the defaults write commands!</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/wdv2_jA-507X2JQbRNWDp-_Gtjk/0/da"><img src="http://feedads.g.doubleclick.net/~a/wdv2_jA-507X2JQbRNWDp-_Gtjk/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/wdv2_jA-507X2JQbRNWDp-_Gtjk/1/da"><img src="http://feedads.g.doubleclick.net/~a/wdv2_jA-507X2JQbRNWDp-_Gtjk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=7UP3A7Etu9E:j6DXWBrRXEE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=7UP3A7Etu9E:j6DXWBrRXEE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=7UP3A7Etu9E:j6DXWBrRXEE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=7UP3A7Etu9E:j6DXWBrRXEE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=7UP3A7Etu9E:j6DXWBrRXEE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=7UP3A7Etu9E:j6DXWBrRXEE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=7UP3A7Etu9E:j6DXWBrRXEE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/7UP3A7Etu9E" height="1" width="1"/> View the full article
Recommended Posts