Finding all paths to copies of app ?
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