• 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: "matt jaffa" <email@hidden>
  • Date: Wed, 14 Jun 2006 11:33:24 -0600

So what I am doing now is using the AppleEvents to send quit application to
all the open .app applications, which works great. Now the problem I am
having is that I am using system("/sbin/shutdown -r now") to cause the
reboot, but the system command is returning error 32256 which I have no clue
what that means. Now this is after applying the 10.2.8 combined update, and
not restarting after it is installed. We are installing the patches manually
with installer so we need to handle the restart.


On 6/13/06, Damien Sorresso <email@hidden> wrote:

On 13 Jun, 2006, at 7:26 PM, Greg Herlihy wrote: > The Finder "restart" Applescript command (even though it works) is > outdated > - the modern way to restart the system using Applescript is to send a > "restart" command to System Events.

Indeed, but the original poster was inquiring about support for
Jaguar. In my experience, just about AppleScript-related in Jaguar is
sketchy at best.
--

Damien Sorresso

Macintosh Developer
Computer Infrastructure Support Services
Illinois State University
E-mail: email@hidden



_______________________________________________
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



_______________________________________________
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


References: 
 >Re: Programmatically restarting Mac OS X (From: Greg Herlihy <email@hidden>)
 >Re: Programmatically restarting Mac OS X (From: Damien Sorresso <email@hidden>)

  • Prev by Date: Re: AppleEvent handlers don't seem to work.
  • Next by Date: Re: sheets and drawers
  • Previous by thread: Re: Programmatically restarting Mac OS X
  • Next by thread: Problems with NSURLRequest and HTTP POST Form Data
  • Index(es):
    • Date
    • Thread