2

I need to check if the app exist on system disk. And it works fine if I don't have connected external hard drive. But it also returns me the path to apps on external hard drive sometimes.

I use absolutePathForAppBundleWithIdentifier method of NSWorkspace.

It is described in documentation. But I'm currently unable to find what I need.

-NSWorkspace absolutePathForAppBundleWithIdentifier

-NSWorkspace URLForApplicationWithBundleIdentifier

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Nuzhdin Vladimir
  • 1,714
  • 18
  • 36

1 Answers1

2

Since 10.10, there's LSCopyApplicationURLsForBundleIdentifier().

Ken Thomases
  • 88,520
  • 7
  • 116
  • 154