Shutdown Items - in OS X?

Discussion in 'macOS' started by madog, Dec 4, 2006.

  1. madog macrumors 65816

    madog

    Joined:
    Nov 25, 2004
    Location:
    Korova Milkbar
    #1
    I was just reminiscing over OS 9 and remembered about the Shutdown Items that you could run [scripts and such] upon [obviously] shutdown of the computer. Is there an equivalent to that in OS X? It might be something like a cron script [which I'm not all that familiar with] but I'm guessing it won't be as easy as creating a folder inside the System Folder [or System/Library].

    Any help would be great, I've been searching here and in google and have found the question, but not the answer [the simpler the better!]. TIA
     
  2. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #2
    You're on the right track and it is (almost) that easy. Startup items also double as shutdown items. You can create a startup item that doesn't do anything at startup and does whatever it is you want at shutdown time.

    Details here.
     
  3. madog thread starter macrumors 65816

    madog

    Joined:
    Nov 25, 2004
    Location:
    Korova Milkbar
    #3
    I actually found that link in my google searches and my problem was that I actually don't know what to do with it. More specifically, I don't know what to insert in the stopservice section of the script. Like how to run an applescript reminding my father to shut off the printer for example. It's just that I'm not all that familiar with unix [other than: ls and rm -R]. It's probably something simple like, "# open users/me/documents/reminderscript". This is turning into a scripting thread now [sorry mods] but here is the post from the link if anyone can help me with it. [Hold my hand, please!]

    Another thing, can it be a simple text file placed in the directory? What is the second bit of code doing and is it necessary? I know the chmod has to do with permissions so I'm sure I can find info on how to do that through the terminal.
     

Share This Page