Currently Being ModeratedOct 27, 2011 9:53 PM (in response to kelly96)
There's no "clean" method for doing it from the GUI. Here's one method -
In addition here are several existing topics on the issue and many of them feature additional methods (which are very similar to the one found in the first link I provided):
Currently Being ModeratedNov 15, 2011 1:46 PM (in response to kelly96)
The cleanest method when shutting down via the menu or power button is just hitting the Space bar, then Return key.
I demo'd this here: http://www.youtube.com/watch?v=7IWTDKiMFg8
Currently Being ModeratedNov 15, 2011 1:55 PM (in response to kelly96)
This is what I use for a quick, clean, and easy shutdown with one click. No worry about apps reopening. Best of all, it makes no changes to to your system, such as some of the haxies i've seen.
Once installed in you Applications folder, copy(drag) the app icon to the dock. and you are set. One click, and you have a clean shutdown.
Currently Being ModeratedNov 15, 2011 2:04 PM (in response to SP Forsythe)
I don't understand, that hack definitely makes a change to your system. You even have to enable accessibility to get it working.
I think two extra but quick keyboard strikes is much easier. Not to mention the changes by the script might get reset on a future update.
Currently Being ModeratedNov 15, 2011 3:23 PM (in response to Sliceofdanny)
I think you misundestand the script. The only thing it does is automate the same keystrokes a user would make when he/she ordinarily shuts down their computer. With one mouse activation, the script triggers a shutdown command from the apple menu, and then proceeds to uncheck the "reopen windows when logging back in" box, afterwhich it "clicks:" the shutdown confirmation box. It does nothing else. It issues no terminal commands, nor does it alter one single preference. Moreover, upon reboot, the "reopen windows when logging back in" box is reverted to it's default selection by Lion itself, with no interaction from the simple Applescript.
But to each his own. Some users prefer using their keyboard to shut down, which would be a sequence of 1) Power Button, 2) Space Bar, 3) Enter. While others would prefer a single click on a dock icon. It's a choice, not a competition.
Currently Being ModeratedNov 16, 2011 7:04 AM (in response to SP Forsythe)
Ooooohhh I understand now. Yes I was mistaken, it's changed since I last saw it.
This is now GUI based which may still be a problem if Apple changes that dialog, but can be relatively simple to modify.
Currently Being ModeratedNov 16, 2011 6:50 PM (in response to kelly96)
go to general preferences
then at "number of recent applications" put 0
works so far
Currently Being ModeratedDec 13, 2011 12:13 PM (in response to kelly96)
Of course is it possible! And it is "clean"!
Open a Terminal and type:
defaults write com.apple.loginwindow TALLogoutSavesState NO
The "save state" box will still be there and checked. But no programs will be reopened on a shutdown/restart event. Not even if you want them to.
To revert the change type:
defaults write com.apple.loginwindow TALLogoutSavesState YES
Currently Being ModeratedDec 13, 2011 1:24 PM (in response to dude991)
Have you tried that change yourself?
Really, it should revert after the next boot/login.
You would also need to make the ~/Library/Preferences/com.apple.loginwindow.plist file as a read-only file and lock it with root user access only.
I think this falls well under the concerns that Sliceofdanny first expressed.
Currently Being ModeratedDec 13, 2011 1:35 PM (in response to SP Forsythe)
You are right indeed sir.
One can always cmd ctrl eject. But that's another story...
Currently Being ModeratedFeb 16, 2012 10:39 PM (in response to Sliceofdanny)
"just hitting the Space bar, then Return key."
Nope, didn't do anything. When I press the space bar, I just get a system "boop" sound indicating a nonsense command was tried.