Re: Restarting OSX through applescript
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.