• 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: 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.

References: 
 >Newbie Questions (From: "Ivan Nuñez" <email@hidden>)

  • Prev by Date: Mac OS X and getting preview of image
  • Next by Date: Re: AppleWorks 6: how do you set text style?
  • Previous by thread: Newbie Questions
  • Next by thread: Re: Newbie Questions
  • Index(es):
    • Date
    • Thread