You want LSCopyApplicationURLsForBundleIdentifier —Rob
> On Jul 16, 2020, at 6:24 AM, Gabriel Zachmann via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > 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 > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/petrock%40mac.com > > This email sent to petr...@mac.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com