1

Possible Duplicate:
List potential applications that could open a file

How can I get the list of applications registered to open a specific file (from its path) under Mac OS X, in objective-C?

Community
  • 1
  • 1
AP.
  • 5,205
  • 7
  • 50
  • 94
  • 1
    Duplicate of http://stackoverflow.com/questions/1051735/list-potential-applications-that-could-open-a-file . – JWWalker Apr 06 '11 at 20:18

1 Answers1

5

Launch Services Programming Guide has the information you need. But basically you can get that list multiple ways. If you have the URL to the file, you would use LSCopyApplicationURLsForURL.

For example: LSCopyApplicationURLsForURL(fileURL, kLSRolesViewer | kLSRolesEditor);

Black Frog
  • 11,595
  • 1
  • 35
  • 66