Re: Newbie Questions
Re: Newbie Questions
- Subject: Re: Newbie Questions
- From: kai <email@hidden>
- Date: Tue, 30 Sep 2003 19:16:09 +0100
on Mon, 29 Sep 2003 20:34:17 +0100, Mr Tea <email@hidden> wrote:
>
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
Very close - well remembered. :-)
>
That might need to be inside a Finder tell block, incidentally.
Correct. FWIW, 'execution state' is an application property from Finder
Basics. It returns one of six possible states: 'starting up', 'running',
'rebuilding desktop', 'copying', 'restarting' - or 'quitting'.
---
kai
_______________________________________________
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.