6 Replies Latest reply: Nov 17, 2012 6:24 AM by Ginnyy
twirlingelephants Level 1 Level 1 (30 points)

I have a computer lab with 35 Macs running Lion. There are 2 student accounts on each computer, each of which is shared by about 12-15 students. The Resume feature is becoming very difficult to deal with because students are constantly seeing files open that do not belong to them. Short of going around and opening System Preferences 70 times to uncheck one box, is there a way to send out a command using ARD? Any advice gratefully accepted. Thanks in advance.


Too many Macs to enumerate here
  • 1. Re: Is there a way to turn off the Resume feature of Lion using ARD?
    Kappy Level 10 Level 10 (226,855 points)

    Dealing With The Resume Feature of Lion

     

    Managing Mac OS X Lion's application resume feature.

     

    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.

  • 2. Re: Is there a way to turn off the Resume feature of Lion using ARD?
    twirlingelephants Level 1 Level 1 (30 points)

    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.

  • 3. Re: Is there a way to turn off the Resume feature of Lion using ARD?
    Kappy Level 10 Level 10 (226,855 points)

    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.

  • 4. Re: Is there a way to turn off the Resume feature of Lion using ARD?
    nojohnny101 Level 1 Level 1 (0 points)

    hey

          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!

     

    peace will

  • 5. Re: Is there a way to turn off the Resume feature of Lion using ARD?
    twirlingelephants Level 1 Level 1 (30 points)

    Sadly, this didn't work when I sent it out (replacing com.apple.Terminal with com.microsoft.PowerPoint) through ARD.

     

    Any other suggestions?

  • 6. Re: Is there a way to turn off the Resume feature of Lion using ARD?
    Ginnyy Level 1 Level 1 (0 points)

    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.