How to check the location of an application installed under OS X?
I tried it with the method LSFindApplicationForInfo
and it works fine if you are searching for the bundle identifier.
But this way is not working if you have installed more than one instances of an app. LSFindApplicationForInfo
just gets the location of one instance of an app. Furthermore this function is deprecated in OS X 10.10.
The terminal input mdfind "kMDItemCFBundleIdentifier
from the following thread works fine, but it just works if spotlight is enabled.
How to get the locations off all app instances with the same bundle identifier or the same name "name.app" inside source code written in C or Objective-C?