• 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
Finding all paths to copies of app ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding all paths to copies of app ?


  • Subject: Finding all paths to copies of app ?
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Thu, 16 Jul 2020 14:24:00 +0200

Is there a way to find the paths/URLs to all app bundles that have the same
bundle ID?

I have a user who likes to make duplicates of my app (it does make sense, to
some extent).
So, in my launcher app, I'd like to to launch all of these copies.

I have checked the docs on NSWorkspace and the doc for urlForApplication(),
but AFAICT they will just pick one of the copies.

On the web I found this solution:
mdfind "kMDItemCFBundleIdentifier == 'com.domain.coolapp'"

I was wondering if there is a simpler solution that would not require launching
a Process and parsing its output.

Thanks a lot in advance.


Best regards, Gabriel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Finding all paths to copies of app ?
      • From: Rob Petrovec via Cocoa-dev <email@hidden>
  • Prev by Date: NSCollectionView + custom layout => missing vertical drop line
  • Next by Date: Re: Finding all paths to copies of app ?
  • Previous by thread: NSCollectionView + custom layout => missing vertical drop line
  • Next by thread: Re: Finding all paths to copies of app ?
  • Index(es):
    • Date
    • Thread