Currently Being ModeratedOct 8, 2012 8:37 AM (in response to twirlingelephants)
Dealing With The Resume Feature of Lion
If you shutdown your computer you should get a dialog asking if you want applications to resume on the next startup. Simply uncheck the box to prevent that from occurring. Open General preferences and uncheck the option to Restore windows when quitting and re-opening apps. You can also install a third-party utility to control resume features on individual applications: RestoreMeNot or Application State Cleaner.
It is possible to completely stop the Resume feature although I'm unconvinced that it is that annoying. Nevertheless see the following:
If you have not yet done so you must first make your /Home/Library/ folder visible. Open the Terminal application in the Utilities folder. At the prompt paste the following command line:
chflags nohidden ~/Library
Press RETURN. Quit the Terminal application.
In the Finder navigate to the /Home/Library/Saved Application State/ folder. Delete the contents of the folder. Back up to the /Home/Library/ folder. Select the Saved Application State folder. Press COMMAND-I to open the Get Info window. In the Sharing and Permissions panel at the bottom click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window.
Quit all open programs except the Finder (this is very important.) Next, navigate to the /Home/Library/Preferences/ByHost/ folder. Look for a .plist file with "com.apple.loginwindow." in the file name followed by some numbers in hexadecimal. Select the file. Press COMMAND-I to open the Get Info window and in the Sharing and Permissions panel click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window. If you also find a file with the same filename but with a last extension of ".lockfile," then you should delete it.
The above should eliminate the Resume feature system-wide. Note that any future system updates or upgrades will likely undo these changes. You will then need to repeat this procedure assuming there are no major changes in OS X related to it.
Perhaps something above will be helpful.
Currently Being ModeratedOct 9, 2012 6:10 AM (in response to Kappy)
Thanks, but I am afraid I wasn't clear in how I phrased my question. I have been able to turn off the portion of the feature where the windows that were previously open reopen on login.
What I need to do is stop the last open document from appearing when an application is starting. This is definitely a problem for me because multiple students are logging in on the same account, so when Billy logs in and starts an application, he should get a new blank page, not Mary's work. My students range in age from 5 to 11, and it is not always easy to get the younger students to close the open document without making any changes to it. Even when they do it properly, having to give them the instructions to do it wastes valuable time because the students only get to come to the lab for a short time each week and every minute is crucial.
In addition, I want to be able to send out the command to turn this off through Remote Desktop, so I don't have to go to each computer and manually make the changes to each of the two student accounts on every computer because I simply don't have the time to do it that way.
I know that it would be better for each student to have his/her own login for the computers, but that is not an option that is available to me.
Currently Being ModeratedOct 9, 2012 7:08 AM (in response to twirlingelephants)
Open General preferences and check the box to Close windows when quitting an application. I do not know how you would do that through ARD as I am not familiar with it. It may be possible using Applescript.
Currently Being ModeratedOct 19, 2012 12:10 AM (in response to twirlingelephants)
i did this to about 15 computers that i manage.....
here is the terminal command you should be able to send through unix:
defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool false
the only way that i have found is on a per app basis....so you'll have to change the above code and insert the application name for each one you want to do......not ideal but better than nothing....
let us know!
Currently Being ModeratedOct 26, 2012 12:11 PM (in response to nojohnny101)
Sadly, this didn't work when I sent it out (replacing com.apple.Terminal with com.microsoft.PowerPoint) through ARD.
Any other suggestions?
Currently Being ModeratedNov 17, 2012 6:24 AM (in response to twirlingelephants)
I found an app that turns on or off some of Mt. Lion's features. Others seemed to like it. I like it. Sent the developer some $$. There is a feature that says "Disable resume for a single app." Default is "No." I'm not sure if this is exactly what you are looking for, but it might be worth trying. I didn't even know what "resume" meant, and when I looked it up, I found this thread. I guess "resume" doesn't bother me, or I would have been frantically looking for a way to change it. Seems Apple keeps ADDING things to their newest OS that I keep wanting to get rid of. I wish they would give us the option of adding rather than their doing it. I get the impression that so many of these additions slow down the computer. I have an old 9500 with the older, less sophisticated OS, and it goes a lot faster for most of what I want to do. But maybe that's because I have simple requirements.