• 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: Programmatically relaunching app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Programmatically relaunching app
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Programmatically relaunching app
  • Next by Date: Strange problem with NSPopUpButton on Panther!!
  • Previous by thread: Re: Programmatically relaunching app
  • Next by thread: Re: Programmatically relaunching app
  • Index(es):
    • Date
    • Thread