Is there any API which takes bundle Identifier as input argument and returns if the application is installed in macOS
swift code to get if application is installed in macOS using bundle identifier
It kinda depends on what you mean by “installed”? For example, if an app is sitting in user A’s home directory and you’re logged in as user B, and thus can’t access it, is it installed?
Anyway, if you only care about about apps that you can ‘see’,
urlForApplication(withBundleIdentifier:)
is a good start.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"