• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?


  • Subject: Re: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
  • From: Graff <email@hidden>
  • Date: Sat, 12 Jun 2004 23:09:09 -0400

There is no direct way to do shutdown scripts through the GUI. Through the shell you can change the logout hook to run a script or program when a person logs out but that's a pain to do:
<http://developer.apple.com/documentation/MacOSX/Conceptual/ BPSystemStartup/Tasks/CustomLogin.html>

The StartupItems directory is not the same as the Startup Items folder was under Mac OS 9. You need to set it up in a specialized way. Here is how to use it:
<http://developer.apple.com/documentation/MacOSX/Conceptual/ BPSystemStartup/Tasks/CreatingStartupItems.html>


IMHO the best way to do a startup item is to do so through the System Preferences, it is located at:
System Preferences->Accounts->TheUser->Startup Items

For shutdown items you would have to create some sort of monitoring program or shell tool and have it listen for a shutdown event. Then it could take action before shutting down.

- Ken

On Jun 12, 2004, at 10:34 PM, trinko wrote:

As far as i can tell there is no equivalent to the old shutdown items folder from OS 9. Anyone know otherwise?

i've tried putting script applications into /Library/StartupItems and ~/Library/StartupItems and they don't run. I can get them to run by using the accounts preference and specifying the scripts as starup items but I was wondering if there is a folder equivalent to the old startup items in System 9.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run? (From: trinko <email@hidden>)

  • Prev by Date: Re: Replace characters in filename
  • Next by Date: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
  • Previous by thread: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
  • Next by thread: Re: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
  • Index(es):
    • Date
    • Thread