• 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: Programmatically restarting Mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Programmatically restarting Mac OS X
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: No crashlog & my application is leaving me :-(
  • Next by Date: Re: No crashlog & my application is leaving me :-(
  • Previous by thread: Programmatically restarting Mac OS X
  • Next by thread: Re: Programmatically restarting Mac OS X
  • Index(es):
    • Date
    • Thread