• 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: Restarting OSX through applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restarting OSX through applescript


  • Subject: Re: Restarting OSX through applescript
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 29 Mar 2002 11:16:41 -0800

On Friday, March 29, 2002, at 08:29 AM, Joel Mahaffey wrote:

I'm having trouble writing a script to restart OSX, I'm trying to make a
script to change the startup folder, and restart all in one click.
The best I've done is to make it so that the applescript hangs, and once you
force quit the applescript, it restarts successfully.

Mac OS X behaves exactly like Mac OS 9 in this respect. The problem is that "restart" is trying to be nice and let all running applications finish their work before restarting, and if you just say 'tell application "Finder" to restart', the script won't finish until the restart is done -- a Catch-22.

The solution is to put the "restart" command inside an "ignoring application responses" block. (Maybe we should make it always act this way -- it's useless otherwise.)


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

  • Follow-Ups:
    • Re: Restarting OSX through applescript
      • From: John W Baxter <email@hidden>
    • Re: Restarting OSX through applescript
      • From: Sander Tekelenburg <email@hidden>
References: 
 >Restarting OSX through applescript (From: Joel Mahaffey <email@hidden>)

  • Prev by Date: Re: Can MacOS 9.1 use AppleScript 1.8.2b3?
  • Next by Date: Re: Restarting OSX through applescript
  • Previous by thread: Restarting OSX through applescript
  • Next by thread: Re: Restarting OSX through applescript
  • Index(es):
    • Date
    • Thread