How to change or unlink files from applications in OS X

RTFIconXOS X will automatically associate programs to handle file types they are built to read. For instance, if you have a file with a non-standard extension such as .xyz, then if you double-click it OS X will likely ask you to select an application to use; however, if you have installed an application that can handle .xyz file types, then OS X will detect this and launch this application when you open a file of this type. While convenient, if you would like to unlink this association then you will have to jump through a couple of hoops.

This approach can be done on two levels: file-specific, or system-wide.

File-specific changes

Finder Open With menu

The Open With section can be used to select a detected application, or another one, for handling the specified file (click image for larger view).

If you have a specific file for which you would like to change the default application that is launched when you open it, you can do so:

  1. Select the file in the Finder and press Command-i to get info on it
  2. Go to the Open With section and select an application, or choose “Other” from the drop-down menu and locate one on-disk.

If you would like to unlink a file so the system does not launch a program when you open the file, then instead of choosing a program from the list, perform the following action:

  1. Select “Other” from the drop-down menu.
  2. Choose “All Applications” from the “Enable” menu at the bottom of the Open dialogue that appears.
  3. Navigate to the Macintosh HD > System > Library > CoreServices
  4. Select the Finder in this folder as the program to use for opening the file.

System-wide changes

The above procedures will change the default application for opening a file, or if the Finder is used, will effectively unlink the file from a default application; however, this will only affect the given file. To make this change system-wide, you can click the “Change All” button in the file’s information window, which will update the system’s launch services to handle all files of this type in the manner specified.

Automator open document with application workflow

Add only the Open Finder Items action to the workflow, and then save it as an application (click image for larger view).

Another approach for having a document be unlinked and have the system require you ask for a program to handle it each time you launch it, is to create an Automator workflow that will ask you which program you would like to open the file in:

  1. Create a new Application workflow in Automator
  2. Locate and drag the “Open Finder Items” action to the Workflow area
  3. Click the action’s Options button and check “Show this action when the workflow runs”
  4. Save the workflow as an application called “Launcher” in your Utilities folder (though you can save it anywhere and with any name)

With this application created, go back to your document and change its default handling program as described previously, but instead of using the Finder as the application to open with, choose the newly created “Launcher” program. Now when you open any documents of this type the system will open the Launcher and ask you to choose a program from the drop-down menu.

2 thoughts on “How to change or unlink files from applications in OS X

  1. MaX

    What about rebuilding the Launch Services database? For instance, with Cocktail
    http://www.macupdate.com/app/mac/10909/cocktail

    On the other hand, “How to change or unlink a files” should read “How to change or unlink files”.

    1. Topher Kessler Post author

      This article is not about problems with the launch services, but about changing a pre-assigned application association that is set up by the launch services. Resetting the launch services will only result in the system setting up this association with some default application again.

Comments are closed.