Re: quit and relaunch in installer
Re: quit and relaunch in installer
- Subject: Re: quit and relaunch in installer
- From: Charles Srstka <email@hidden>
- Date: Sat, 1 May 2004 17:48:39 -0500
On May 1, 2004, at 4:20 PM, Devon E Bowen wrote:
A nicer way to do it is with AppleScript - i.e. tell appliaction
"MyApp" to quit. Then the app can do whatever cleanup it normally does
when exiting.
Thanks. With some poking around I found I can do this from csh:
echo 'tell application "MyApp" to quit' | osascript
That will do.
Keep in mind that osascript is installed by the BSD Subsystem, so if
your users do not have that installed, your installer may not function
properly. There's a class called NSAppleScript which is available in
all installations of Mac OS X 10.2 and later that may be a better
solution to make sure it works with all your users.
Charles
_______________________________________________
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.