• 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 from an applicaiton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: restarting from an applicaiton


  • Subject: Re: restarting from an applicaiton
  • From: David Remahl <email@hidden>
  • Date: Tue, 24 Sep 2002 06:06:44 +0200

>> May I suggest a shell command,
>>
>> sudo shutdown -r now
>
> That was my first thought, as well - but then I tried it. It cleanly
> unmounted active filesystems, but none of the GUI apps that were running
> were shut down nicely. Mail.app had to spend a couple of minutes
> re-indexing all of my mailboxes when the system came back up.
>
> In short, it worked, but it obviously isn't what Apple's installer or
> updater utilities use.

FWIW, Installer uses AppleEvents to restart. It is likely that that is the
approach you want to take too.

If you don't want the "Do you want to restart" finder dialog (or is it
loginwindow?) to appear, then there are AppleEvents for that too.

This little ASS-app, will show you the basic AppleScript commands:
<http://www.macosxlabs.org/documentation/kiosk/configuration/adminutility/ad
minutility.html>

/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: restarting from an applicaiton (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: DO and StartupItems
  • Next by Date: Re: DO and StartupItems
  • Previous by thread: Re: restarting from an applicaiton
  • Next by thread: Re: restarting from an applicaiton
  • Index(es):
    • Date
    • Thread