• 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: Detecting whether app at path is running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting whether app at path is running?


  • Subject: Re: Detecting whether app at path is running?
  • From: Nicholas Riley <email@hidden>
  • Date: Sun, 26 May 2002 12:13:29 -0500
  • Mail-followup-to: Matt Gemmell <email@hidden>, cocoa-dev <email@hidden>

On Sun, May 26, 2002 at 06:04:49PM +0100, Matt Gemmell wrote:
> Thanks for the pointer. Would there be anything wrong with using
> LSCopyKindStringForRef() and just checking to see if the string contains
> "Application"? I don't need to know what kind of app it is.

The kind string may not contain 'Application'. It could be localized,
or (as is currently true for me) LaunchServices could be confused and
think that all my applications belong to some random application.

If it's a CFM executable then its type will be 'APPL'. Otherwise,
it'll be a bundle, and you can use the CFBundle/NSBundle stuff to find
an executable inside it.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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: Detecting whether app at path is running? (From: Matt Gemmell <email@hidden>)

  • Prev by Date: Re: Detecting whether app at path is running?
  • Next by Date: Quick question about NSWorkspaceDidLaunchApplicationNotification
  • Previous by thread: Re: Detecting whether app at path is running?
  • Next by thread: what makes a folder an application?
  • Index(es):
    • Date
    • Thread