How to find multiple apps with same bundle identifier?

后端 未结 3 630
独厮守ぢ
独厮守ぢ 2021-01-05 08:52

Does anyone know of a good way to find (in the filesystem) every app with a given bundle identifier? NSWorkspace and Launch Services let you look for an app by

3条回答
  •  被撕碎了的回忆
    2021-01-05 09:50

    This question was asked in 2012 concerning OS X Lion 10.7. As of OS X Yosemite 10.10 the answer is:

    LSCopyApplicationURLsForBundleIdentifier

    Summary:

    Given a bundle identifier (such as com.apple.finder), find all URLs to the corresponding application.

    Discussion:

    Returns zero or more URLs to applications that have the specified bundle identifier.

提交回复
热议问题