Setting file association types with an installer

Discussion in 'Mac Programming' started by sinecurea, Apr 6, 2009.

  1. sinecurea macrumors regular

    Mar 14, 2006
    Northern Ireland
    When installing my application, is there any way to set a file association at install time?

    I'm looking to associate a particular file type with an application - i.e. when they click on our file type, it opens in our application.

    Is there an easy way to do this in the installer?
    I can run Unix script, if that helps.

  2. kpua macrumors 6502

    Jul 25, 2006
    Take a look at Launch Services. If you create your application's Info.plist correctly, you likely won't need to do anything at install time to create this association, since Launch Services will do it for you.

Share This Page