Re: Programmatically relaunching app
Re: Programmatically relaunching app
- Subject: Re: Programmatically relaunching app
- From: Joe Lester <email@hidden>
- Date: Tue, 23 Mar 2004 08:47:02 -0500
I launch an NSTask which runs a shell script like this:
#!/bin/sh
sleep 1 # Give app time to quit
osascript -e 'tell application "YourAppName" to activate' #
Relaunch with apple event
I've thought of launching a helper app that ensures my app quits and
then relaunches it. Seems kind cheesy, though.
_______________________________________________
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.