Re: Is there a way to trigger scripts at shutdown in 10.3? why don't scripts in /Library/StartupItems run?
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: trinko <email@hidden>
- Date: Sun, 13 Jun 2004 14:18:25 -0700
thanks to everyone who provided answers. i think part of the problem
is the fact that the applications that run at log in are called
startup items even though they're not the same sort of startup items
you find in the startupitems folder which run at startup not login as
i understand it.
i wrote a little script to verify that you can have a script run all
the script applications it finds in a folder and then uses system
events to log you out. that replicates the functionality of the old
shutdown items folder. the only strange thing was that when i ran
simple little scripts--just a display dialog-- i kept getting an
error saying the connection was invalid, even though the scripts ran.
i used a try to prevent the message from showing up.
thanks again.
At 9:52 PM -0600 6/12/04, Donald Hall wrote:
There might be some Unix way to have things happen at shutdown, but
I don't think there is any equivalent of the old shutdown items we
had in OS 9 and earlier. You might be able to create a script that
you use to run the scripts you want and then to shut down. You could
use this script to shut your computer down instead of the more
conventional ways.
I believe that the items in the StartupItems folders run before the
Graphical User Interface is established i.e. before you are logged
in. I'm pretty sure your AppleScript scripts need you to be logged
in. You can make them Login items. Go to System Preferences | Login
Items and add them there. They will then run whenever you log in,
which of course you will always do when you start your computer.
Hope this helps,
Don
At 9:44 PM -0600 2004/06/12, 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.
thanks.
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
--
tom trinko
http://members.aol.com/trinkos/basepage.html
email@hidden
_______________________________________________
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.