How to create a virtual file on mac OS X?

How does Mac OS X know what program to open when you double click on a file?

sammich at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

From what I understand, OS X decides by both file extension AND metadata (which is why if you get a .doc from a friend who edited it in TextEdit, it will have TextEdit's icon, not Word's.) Not sure how the precedence works exactly, though. What I do know is that it makes it damn hard to get consistent results for every file of a particular type.

tweebiscuit

There are programs that can change this after the fact, by the way -- you can do it in the Finder, of course (by doing Get Info on a document, selecting the application that should open it, and clicking Change All). If you'd like to have full control over the Launch Services database in one place, install http://www.rubicode.com/Software/RCDefaultApp/.

kindall

man 1 file

devilsbrigade

If you are asking for the purpose of changing the program that opens the file, Select the file and select File> Get info. Then, under Opens with... select the program you want to use and then click the button below that says something to the effect of "Apply to all." Incidentally, for internet protocols there is a separate Preference Pane you can download called More Internet.

jxpx777

RCDefaultApp is the only reliable way for a normal user to change these settings. The Opens with... thing in the Finder's Get Info rarely works when you try to apply the setting to all files of that type.

blasdelf

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.