Re: Restarting OSX through applescript
Re: Restarting OSX through applescript
- Subject: Re: Restarting OSX through applescript
- From: Mr Tea <email@hidden>
- Date: Sun, 31 Mar 2002 00:18:26 +0000
This from Sander Tekelenburg - dated 30/3/02 05.17 pm:
>
My approach works perfectly well with "restarting", but it does not work
>
with "quitting". After all other Shutdown Items have quit, this stay-open
>
applet just stays open and the machine is never shut down.
Hi, Sander.
My approach to this is simple. If items in the shutdown items folder are
being activated, then one of two things is happening - the machine is either
restarting or shutting down. I only check to see if the 'execution state' is
restarting. If it's not, then the machine must be shutting down.
If your shutdown script is the first thing that runs when the machine
restarts/shuts down then it's a cinch, using the above reasoning, to check
the execution state at the top of the script and include an appropriate
command at the end.
Also, I don't like to put loads of stuff in my startup and shutdown items
folders. I just use a single script in each, and use commands in the scripts
to launch/open other items as required, even if it's just a matter of
telling the Finder to open everything in another specified folder.
T.
--
_______________________________________________
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.