Re: Programmatically restarting Mac OS X
Re: Programmatically restarting Mac OS X
- Subject: Re: Programmatically restarting Mac OS X
- From: Gregory Weston <email@hidden>
- Date: Tue, 13 Jun 2006 18:03:19 -0400
matt jaffa wrote:
Is there a nice way of programmatically restarting Mac OS X that
works on
10.2 and above?. I was using the Apple events from a technical note
but when
certain system updates or security updates are installed on Jaguar
these
methods don't work till the system reboots. "reboot" or "shutdown"
commands
are nice about a restart, not allowing users to save unsaveds
documents
first.
Not sure which technical note you're referencing or (as a result)
what methods aren't working, but not more than a minute ago I had
smashing success with this AppleScript:
tell application "Finder" to restart
Should still work wrapped up in an NSAppleScript object, I would think.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden