OS X 10.7 & 10.8: Forcing Programs to Start Fresh

| TMO Quick Tip

With Lion and Mountain Lion, supported programs will reopen their existing windows when you quit and relaunch them. You can turn off this behavior completely if you hate it—the setting's in System Preferences > General.

(This screenshot is from Mountain Lion; Lion's checkbox reads Restore windows when quitting and re-opening apps.)

But what if you need to override this setting just once instead of leaving it off all the time? As I pointed out in a previous tip, you can ask a program to discard its saved windows when you quit it by using the Option-Command-Q shortcut. But what about when you're launching one instead, and you know it's got some embarrassing saved windows?

Let me paint you a picture. You're on the Internet, um, shopping. Yeah, that's it. You're shopping for Christmas presents. And your spouse walks in, so you stealthily hit Command-Q to quit Safari. But horror of horrors, she wants to look something up on your Mac! And you don't want her to see the saved windows with her, uh, presents!

Luckily, there's an easy way around that. Just hold down Shift as you click on Safari in your Dock, and it'll override any saved windows you have. What'll pop up then is whatever you have configured in Safari > Preferences > General > New windows open with (like your homepage or your Top Sites, for example). It's a fresh start!

After you chase your spouse out of the room, you can click on History > Reopen All Windows from Last Session if you need to get your stuff back.

You can use this trick on any other program that supports the resume feature, like Pages or TextEdit, as well. So it's pretty simple to be in control of any windows you have open and how they behave, you sneaky Mac user, you.

Comments

geoduck

With Lion and Mountain Lion, supported programs will reopen their existing windows when you quit and relaunch them. You can turn off this behavior completely if you hate it—the setting’s in System Preferences > General.

Thank You Thank You Thank You

Yes I found it beyond annoying. I’d open TextEdit to do some writing and the last four or five documents would open and I’d have to close each one to get back to my blank page. I’d click on a JPG image on my desktop and suddenly I’d have half a dozen windows open each with one to four images of all the photos I’d been working with this week. It drove me buggy.

cjpitt

Very nice! Thank you for this tip. It’s nice to know the power of Mac OSX is so well documented…somewhere.

But…could you check if this works for you…when launching a program from a pop-up list…from the Applications folder in the Dock? It works when the program is directly in the Dock…or from LaunchPad. But, apparently, not so from a pop-up list.

OS’s are getting very complicated. There are too many ways for doing the same thing.

 

Websnap

@ cjpitt

Use launchPad… it works there too

Melissa Holt

You’re welcome, geoduck! Thanks for commenting.

cjpitt, it doesn’t look like this works from Dock folders for me either, so in that case, I’d use the Option-Command-Q shortcut I mentioned above. The only problem with that is then you have to remember to do it when you’re quitting the app as opposed to when you’re launching it. wink

Thanks for reading!
—Melissa

Log-in to comment