• 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: quit and relaunch in installer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: quit and relaunch in installer (From: Devon E Bowen <email@hidden>)

  • Prev by Date: Re: Can't make IBOutlet connection in IB
  • Next by Date: Re: Too many ports?
  • Previous by thread: Re: quit and relaunch in installer
  • Next by thread: Re: OT? Why are list archive search results so lame?
  • Index(es):
    • Date
    • Thread