Re: restarting from an applicaiton
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.