• 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: Newbie Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Weird error
  • Next by Date: Re: Writing To A File
  • Previous by thread: Re: Newbie Questions
  • Next by thread: Mac OS X and getting preview of image
  • Index(es):
    • Date
    • Thread