• 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: Relaunching application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relaunching application


  • Subject: Re: Relaunching application
  • From: Nathan Day <email@hidden>
  • Date: Wed, 5 Jun 2002 16:49:53 +0930

You could write an AppleScript applet to do that

on run
tell application "MyApplication"
quit
run
end
end

save as an application and then use NSWorkspace to run it.

On Wednesday, June 5, 2002, at 08:11 AM, Jonathan Wight wrote:

One obvious way is to create a little helper app for this. Your main app
launches the helper app, the helper uses apple events (or just kill() if
you're feeling mean) to terminate the main app, the helper app then
re-launches the main app and kills itself. Pretty straightforward.

Jon.

On 06/04/2002 17:18, "email@hidden" <email@hidden> wrote:

My application needs to be relaunched for some changes to take effect.
Is there any way to automate this, or am I stuck showing a notice to the
user and just quitting?

Owen Anderson
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: Relaunching application (From: Jonathan Wight <email@hidden>)

  • Prev by Date: Re: drawing NOW in a callback, boom!
  • Next by Date: Re: Sound Recording using Cocoa
  • Previous by thread: Re: Relaunching application
  • Next by thread: Re: Relaunching application
  • Index(es):
    • Date
    • Thread