If you’re like me — and I know you are — you sucked up a copy of OSX Lion as soon as it was on the App Store, and were immediately infuriated by the checkbox labelled “Reopen windows when logging back in”.

Why did you find it infuriating, as I do? Because you have to uncheck it every. bloody. damn. time you shut down or reboot. If you don’t, then whatever programs you had running when you shut down will “helpfully” be loaded right the hell back into RAM when you boot again.
Apparently, someone at Apple made the decision that we want our programs to reload every time we reboot, and to hell with what we think about it — because there is no way to override this checkbox setting.
There is no preference to change it.
There is no way to make it go away.
If you forget to click that checkbox on shutdown, your programs will all reload the next time you boot.
Those of us who use silicon pigs such as Adobe’s suite find this setting not merely irritating, but positively infuriating, since it adds several minutes to your system boot time.
There have been several solutions offered to deal with this. I check periodically to see if there’s been progress made. The last time I looked, I stumbled across a series of AppleScripts written by Victor Andreoni that essentially send tell commands to the Finder, ordering a shutdown and clicking the checkbox for you.
In reading his discussion of his methods, I saw that he’d found a default setting, TALLogoutSavesState, that apparently controls whether your programs reload on boot or not. Unfortunately changing that setting to 0 is not persistent; it’s rewritten to 1 on each boot. What that means is that it’s a short-lived pleasure; next time you boot your system, yep, the goddamned programs load up again.
His AppleScript solution is suitable, I think — but there’s a principle in play here, and I’ll be hell if I let my Mac tell me what to do. So in Googling for more information, I learned a couple of other things, and fired up Automator, and did this.
Continue reading →
Spew