Re: Newbie Questions
Re: Newbie Questions
- Subject: Re: Newbie Questions
- From: Mr Tea <email@hidden>
- Date: Mon, 29 Sep 2003 20:34:17 +0100
This from Ivan Nuqez - dated 29/9/03 5:07 pm:
>
To avoid this problem, ensure scripts
>
in the Shutdown Items folder do not contain tell
>
application block / activate commands.
... or failing that, include a shutdown command at the end of your script.
For greater flexibility you may need to know if the computer is restarting
or shutting down (both will trigger the contents of the shutdown items
folder). You can test this by getting the computer's 'execution state'. I
don't have an OS 9 box running at the moment to test this on, but IIRC the
syntax was something like...
if execution state is shutting down then
[do this]
else -- (the computer must be restarting)
[do that]
end if
That might need to be inside a Finder tell block, incidentally.
HTH
Nick
pp Mr Tea
--
Brew of the day: Jackson's Russian Caravan
_______________________________________________
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.