Mac applications associations

Two part question for the MAC gurus,

Is there a better way to find installed apps on a mac over enumerating specialfolders.applications and looking for an .app extension.

Also, is there a way to find out what extensions are associated with an app?

Any help welcome.
Dave

Check out the LaunchServices functions of the MBS plugin.

NSWorkspace will enable you to do both.

Ah sorry, misread… If you want to find all applications you can use the Xojo spotlight plugin to find files with a “.app” extension.

Regarding the extensions.

  1. You already have a link to the application and want to know what files it supports?
  2. You want to know what applications will open a file of a certain type?

MBS Plugin has Spotlight classes.

see
http://www.monkeybreadsoftware.net/class-mdquerymbs.shtml

See example project “Search all applications” coming with MBS Plugins.

q=new MyQuery(“kMDItemContentType=”“com.apple.application-bundle”"")