Jump to content

Disable Resume for Safari or Other Specific Applications in Mac OS X Lion


Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/07/disable-app-saved-state.jpg" alt="Disable Specific App Saved State and Resume in OS X Lion" title="disable-app-saved-state" width="620" height="265" class="aligncenter size-full wp-image-19562" /></p>

<p>Resume is that feature of <a href="http://osxdaily.com/tag/mac-os-x-10-7/">Mac OS X Lion</a> that causes apps windows to reappear after you have quit and then relaunched the app. It’s a great feature but not one that we want all applications to use, so here is how to disable Resume on a per app basis.</p>

<h2 style="font-size:1.2em;">How to Disable Resume for Specific Applications in Mac OS X 10.7 Lion</h2>

<p>This is easy and actually pretty similar to <a href="http://osxdaily.com/2011/07/17/delete-specific-application-saved-states-from-mac-os-x-10-7-lion-resume/">deleting application saved states</a>, just follow along:</p>

<ul>

<li>From the Mac OS X desktop, hit Command+Shift+G and enter the Saved Application States folder located within your <a href="http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/">personal Library</a> at:</li>

<p><code>~/Library/Saved Application State/</code></p>

<li>Find the application you want to disable Resume for, for this walkthrough we’ll use Safari as an example, so the folder we are looking for is “com.apple.Safari.savedState”</li>

<ul>

<li><strong>Note:</strong> You will probably want to delete the contents of the apps folder prior to the next step, otherwise the existing Saved State will become the default state that the app is resumed repeatedly to. That could be helpful if you always want the same tabs or windows to open, but the goal of this walkthrough is for no windows to open and for Resume to be disabled for the chosen app, thus you will want to empty the folders contents</li>

</ul>

<li>Select ‘com.apple.Safari.savedState’ and either right-click and select Get Info from the menu or hit Command+i to get info on the folder</li>

<li>Under “General” check the box next to ‘Locked’</li>

<p><img src="http://osxdaily.com/wp-content/uploads/2011/07/disable-specific-application-resume-os-x-lion.jpg" alt="Disable Specific Apps from Resume in Mac OS X Lion" title="disable specific application resume os x lion" width="379" height="407" class="aligncenter size-full wp-image-19561" /></p>

<li>Close out the Get Info window and relaunch the application for locked state to take effect</li>

</ul>

<p>That’s all there is to it, Resume will no longer save Safaris state because the folder is now locked, preventing the app from accessing it. </p>

<p>For more advanced users, if you’d rather do this through the Terminal, you could do so with the chmod command and a -w flag to prevent write access:</p>

<p><code>chmod -w ~/Library/Saved Application State/com.apple.Safari.savedState/</code></p>

<p>You can do that with as many app folders that you want, or you can set the entire directory to locked and that would be another way to disable the feature completely. </p>

<p>This round outs the manipulation of Lion’s Resume feature, and we’ve covered how to <a href="http://osxdaily.com/2011/07/17/delete-specific-application-saved-states-from-mac-os-x-10-7-lion-resume/">delete specific saved Resume states</a>, <a href="http://osxdaily.com/2011/07/18/disable-mac-os-x-lion-resume-window-restore/">disabling Resume completely</a>, and even <a href="http://osxdaily.com/2011/07/29/discard-windows-from-resume-os-x-lion/">how to discard current session windows on quit</a> from appearing again via Resume. Now you should have full control over Resume and what is reappearing on relaunch, but if you have any more questions about the feature, let us know in the comments.</p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/tdUDmeUII9yN8_QDlYAFjdupVlg/0/da"><img src="http://feedads.g.doubleclick.net/~a/tdUDmeUII9yN8_QDlYAFjdupVlg/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/tdUDmeUII9yN8_QDlYAFjdupVlg/1/da"><img src="http://feedads.g.doubleclick.net/~a/tdUDmeUII9yN8_QDlYAFjdupVlg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=Fkv3KAbqk4Y:oXglDY75p_U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Fkv3KAbqk4Y:oXglDY75p_U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=Fkv3KAbqk4Y:oXglDY75p_U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Fkv3KAbqk4Y:oXglDY75p_U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=Fkv3KAbqk4Y:oXglDY75p_U:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Fkv3KAbqk4Y:oXglDY75p_U:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=Fkv3KAbqk4Y:oXglDY75p_U: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/Fkv3KAbqk4Y" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


×
×
  • Create New...