For every application installed on your Mac, OS X will scan its document-handling capabilities and store them in its Launch Services database, which it then uses to pair up document types with the applications that are built to handle them. Therefore, if you install a new image-handling tool on your system, when you right-click image files or get information on them you should see this program be available in the "Open With" section as an optional handling program.
This service is convenient for ensuring that documents can be opened directly from the Finder; however, it assumes you always want to have a specific handling program launch when you open one of these documents. While this may be true in some cases, you may have some instances where you would like the system to not automatically open specific file types, or at least ask you whether you would like to do so with a given application.
MacFixIt reader Dave recently wrote in with such a situation:I know how to change the program associated with a particular file type that will automatically open when you click the file name. But, how do you change that association to "null"? I am constantly moving JPEG files around, and I don't want any program to open when I click to select a group. I would like to have to manually select the "open with" program to open a JPEG.
Unfortunately OS X's built-in services are fairly application-centric, meaning that while you can register or unregister a specific program's capabilities from the launch services database, you cannot simply clear a file type; however, there is an approach you can use to work around this by assigning the document to a persistent program such as the OS X Finder.
To do this, select one of the file types of interest in the Finder and press Command-I to get information on it. Then go to the Open With section and choose "Other" from the drop-down menu. In the Open dialog window that appears, be sure to choose "All Applications" from the "Enable" drop-down menu and then navigate to the Macintosh HD > System > Library > CoreServices folder where you should be able to select the Finder as the program to use for opening the file.With the Finder selected, now click the "Change All" button in the Info window for the document to make this the default program for all of this file type. Following this, if you open one of these document types the system will leave it be and simply show you the Finder (which you should already be in).
In this way, you can nullify the direct opening of any document type; however, another approach is to have the system ask you for what program to use every time a document of this type is opened, by creating an Automator application that will handle the document and present a list of the applications to use for it. To do this, open Automator and then follow these steps:
- Create a new Application workflow.
- Locate and drag the "Launch Application" action to the Workflow area.
- Click the action's Options button and check "Show this action when the workflow runs."
- Save the workflow as an application called "Launcher" in your Utilities folder (though you can save it anywhere and with any name).
Source : http://reviews.cnet.com/