Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

0098386

Suspended
Original poster
Jan 18, 2005
21,574
2,908
Is there a safe way to disable the state reloading feature in Mountain Lion? I've never found it useful and recently it's becoming a pain (especially with IM apps). I'm also not happy with how tempermental it can be - sometimes it will reload a state, other times it won't even though I've ticked the save state box.

I'd rather have done with it.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,382
201
The easiest way to "deal" with Resume is simply to switch the keyboard shortcuts for "Quit" (Command Q), and "Quit and Close all Windows" (Command alt Q).

Then, when you press Command Q, OS X will quit and close all windows.

<Thoughts on the subject>

Like many of the substantial changes to long-established GUI metaphors in Lion, it requires a change in thinking of how you interact with your computer. Of course, the methods that we are now familiar with were no less strange and unfamiliar when first presented to us, too.

OS X will continue to introduce new UI metaphors and strategies that will evolve the Desktop experience, much of which has otherwise not changed in 40 years. It will become more and more of a fight to resist the changes and continue to work in the original way as the years go by.

</Thoughts>
 

Krazy Bill

macrumors 68030
Dec 21, 2011
2,985
3
There is a folder in your Library called Saved Application State. "Get Info" on that folder and change the Sharing and Permissions to "Read Only".

OSX can't write to it then. I've been doing this since 10.7.
 

Nermal

Moderator
Staff member
Dec 7, 2002
20,644
4,041
New Zealand
There is a folder in your Library called Saved Application State. "Get Info" on that folder and change the Sharing and Permissions to "Read Only".

OSX can't write to it then. I've been doing this since 10.7.

Aha! I'd give you a cookie for that, but I don't have any so you'll have to begrudgingly accept some emoji cake.

#
 

adnbek

macrumors 68000
Oct 22, 2011
1,581
549
Montreal, Quebec
Put a checkmark next to "Close windows when...." in system prefs > general.
 

Attachments

  • Screen Shot 2013-03-26 at 6.12.01 PM.png
    Screen Shot 2013-03-26 at 6.12.01 PM.png
    113.6 KB · Views: 285

0098386

Suspended
Original poster
Jan 18, 2005
21,574
2,908
Like many of the substantial changes to long-established GUI metaphors in Lion, it requires a change in thinking of how you interact with your computer. Of course, the methods that we are now familiar with were no less strange and unfamiliar when first presented to us, too.

Yes yes, that's all well and good but not at all useful in my work environment. I don't want to have to boot my computer up in the morning and have confidential files displayed, it was fine before when switching your computer off also "switched off" the applications.
It's still called Shut Down, separate from Sleep and Hibernate.


There is a folder in your Library called Saved Application State. "Get Info" on that folder and change the Sharing and Permissions to "Read Only".

OSX can't write to it then. I've been doing this since 10.7.
Sounds like that will fix the problem! I've done it, time will tell if it works. Thanks!
 

benwiggy

macrumors 68020
Jun 15, 2012
2,382
201
There are a LOT of webpages devoted to stopping Resume from ... resuming. I would have thought the locking of Saved Application State would be well known. (Surprised this came as news to a Mod!)

However, as I hinted, the time may come when preventing an app from writing a file flags an error or causes a problem, rather than doing nothing.

People have written and posted AppleScripts that can run at Shutdown which ensure all apps quit and close their windows. That might be a better way than barring apps from writing.
 

Krazy Bill

macrumors 68030
Dec 21, 2011
2,985
3
However, as I hinted, the time may come when preventing an app from writing a file flags an error or causes a problem, rather than doing nothing.

Well, I'll take my chances rather than following this gem from you:

'it requires a change in thinking of how you interact with your computer."

But in all fairness, this does sound like something Jobs would've written. :D
 

benwiggy

macrumors 68020
Jun 15, 2012
2,382
201
Well, I'll take my chances rather than following this gem from you:
'it requires a change in thinking of how you interact with your computer."
But in all fairness, this does sound like something Jobs would've written. :D
By all means carry on. I'm merely sounding a note of caution that such a crude implementation may only be a temporary solution.

All computer interfaces are learnt. You have to learn how they work in order to use them. An "Intuitive" interface just means it works like other interfaces you've already learnt.
You don't leap out of the womb knowing how to use a GUI. It's an abstract concept. New versions of apps or OSes frequently bring changes in how they work. Which you have to learn in order to use. Sometimes, that requires changing what you have previously learnt in favour of the new method.

This isn't controversial or marketing speak, is it?

After 20 years of thinking about opening, saving and closing documents in the same way, I now have to think about it in a different way, given Apple's new model for Auto-save, Versions and Resume. I'm not saying whether it's better or worse. I'm just saying I have to think about it differently.
 
Last edited:

Krazy Bill

macrumors 68030
Dec 21, 2011
2,985
3
Sometimes, that requires changing what you have previously learnt in favour of the new method.
Disagree. There will always be resistance to forced change. And for many the first instinct is to find a way to circumvent and customize those changes rather than mindlessly adapt to them. Indeed, it's our duty to do so. :D

This isn't controversial or marketing speak, is it?

Not at all my friend.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,382
201
Disagree. There will always be resistance to forced change. And for many the first instinct is to find a way to circumvent and customize those changes rather than mindlessly adapt to them. Indeed, it's our duty to do so.
Mindlessly adapt? I've always been proud of the fact that the human brain is much more adaptable and configurable than any computer operating system. If anything is mindless, it's resistance to learning and ploughing the same furrow regardless. ;-)

Sometimes, computer interfaces offer a variety of settings, if the programmers have seen fit to include them. Sometimes, an alternative can be created by third-party. Sometimes, it can't, and you just have to get used to it.

There are methods of subverting Resume, some of them less than optimal implementations themselves. But are there are also other options.

Anyway, enough of the philosophy. All the best.
 

0098386

Suspended
Original poster
Jan 18, 2005
21,574
2,908
Ah, it's still doing it. Just rebooted up and loaded up all the apps I had open previously.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,382
201
Ah, it's still doing it. Just rebooted up and loaded up all the apps I had open previously.
A neater solution would be to use an AppleScript that is scheduled to run at shutdown, which closes all windows and quits all apps. I would be surprised if someone hasn't posted one somewhere.
 

Krazy Bill

macrumors 68030
Dec 21, 2011
2,985
3
Ah, it's still doing it. Just rebooted up and loaded up all the apps I had open previously.
Delete all the files/folders inside the "Saved Application State" folder before changing the permissions to "Read Only".
 

davidlv

macrumors 68020
Apr 5, 2009
2,291
874
Kyoto, Japan
defaults write -g ApplePersistence -bool false
This teminal command caused issues with TextEdit on my MBP late 2011, error messages saying, in effect that "you don't have permissions to write to the specified destination." I could manually save, but the automatic save function was really messed up.:eek:
Used "defaults write -g ApplePersistence -bool true" to revert and the issue disappeared. :cool: I don't understand that at all, :confused: but this solution obviously is problematic, at least on my MBP.
 

jameslmoser

macrumors 6502a
Sep 18, 2011
696
669
Las Vegas, NV
This teminal command caused issues with TextEdit on my MBP late 2011, error messages saying, in effect that "you don't have permissions to write to the specified destination." I could manually save, but the automatic save function was really messed up.:eek:
Used "defaults write -g ApplePersistence -bool true" to revert and the issue disappeared. :cool: I don't understand that at all, :confused: but this solution obviously is problematic, at least on my MBP.

Interesting... I have used this to disable the resume, auto-save, etc since Lion came out on 4 macs now and have never had a problem. Friends I know also use this solution without problem. I wonder if this was caused by maybe some other changes you made in an attempt to disable some of these features?

Have you tried creating a new account and then use this command? If it works without problems on a new account, then perhaps you have screwed up directory permissions on your existing user?
 

davidlv

macrumors 68020
Apr 5, 2009
2,291
874
Kyoto, Japan
Interesting... I have used this to disable the resume, auto-save, etc since Lion came out on 4 macs now and have never had a problem. Friends I know also use this solution without problem. I wonder if this was caused by maybe some other changes you made in an attempt to disable some of these features?

Have you tried creating a new account and then use this command? If it works without problems on a new account, then perhaps you have screwed up directory permissions on your existing user?
Read my post, the permissions for the folder were actually fine, and a Command-S save worked fine, so not a permissions issue. That command messed up the autosave function, perhaps a write of a temporary file to another location? In any case reverting solved the issue so I have no need to create another user etc. Never have any saved state issues anyway, just tried that command as a safety net.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.