Re: restarting from an applicaiton
Re: restarting from an applicaiton
- Subject: Re: restarting from an applicaiton
- From: Ondra Cada <email@hidden>
- Date: Tue, 24 Sep 2002 13:28:12 +0200
On Tuesday, September 24, 2002, at 05:51 , Hsu wrote:
How about an AppleScript - something like "tell application Finder
restart" ?
Don't ever (unless you first check whether Finder is there and provide a
reasonable alert if not).
There may be no Finder at all. See SystemOverview.pdf, pp.112-113. Lucky
us Apple themselves fixed in 10.2 the Preview bug (in 10.1 the preview
code launched Preview.app through Finder, so without it it did not
work) -- don't add more such problems yourself.
Besides -- sorry I've missed the beginning of the thread -- what you need
restart for? A decent applicaiton should *NOT* restart system, and that
applies to Installer too: restarting is just a *VERY* lame and despisable
and windozelike workaround for being lazy to do the thing properly (and
just SIGHUP those processes which needs to). Unless kernel itself is
updated, there should be no need to restart -- ever!
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.