Re: Finding all paths to copies of app ?
Re: Finding all paths to copies of app ?
- Subject: Re: Finding all paths to copies of app ?
- From: Rob Petrovec via Cocoa-dev <email@hidden>
- Date: Thu, 16 Jul 2020 10:01:06 -0600
You want LSCopyApplicationURLsForBundleIdentifier
—Rob
> On Jul 16, 2020, at 6:24 AM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> 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 (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
_______________________________________________
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