• 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: Waiting for a program to launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waiting for a program to launch


  • Subject: Re: Waiting for a program to launch
  • From: Charles Srstka <email@hidden>
  • Date: Thu, 19 Feb 2004 11:54:37 -0600

Hmm, I agree with Ondra. It's cleaner to launch apps with the NSWorkspace API; the problem is that you are looking for an app with a specific creator code, which NSWorkspace doesn't look up for you. What I would do would be to look at the LaunchServices API (the headers are in /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ LaunchServices.framework/Headers) and use it to look up the URL of the app with the creator code you want. Then, use LaunchServices to launch the app.

Charles

On Feb 19, 2004, at 10:55 AM, Ondra Cada wrote:

On Thursday, Feb 19, 2004, at 17:22 Europe/Prague, Randall Meadows wrote:

I execute a simple AppleScript telling the Finder to launch the application with a specific signature...

Presumed the app is not inhouse and aimed to general audience, don't: it would not work properly for users who don't want to run Finder.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: Waiting for a program to launch (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: [Slightly OT] Shareware donation collection
  • Next by Date: Thanks to the cocoa-dev massive!
  • Previous by thread: Re: Waiting for a program to launch
  • Next by thread: Thanks to the cocoa-dev massive!
  • Index(es):
    • Date
    • Thread