How does Mac OS X know what program to open when you double click on a file?
-
How does Mac OS X know what program to open when you double click on a file? I'm sure there's some kind of database file somewhere that associates the file name extension or the resource fork with the application, but where is that file? And when I install or drag and drop an application to my drive, how or when does the app tell the Finder 'hey i'm here! I can open these sort of applications!'.
-
Answer:
It's called http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcepts/index.html?http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCIntro/chapter_1_section_1.html. 1) See the section above on the Launch Services database. 2) Applications are automatically registered just by being on your disk. Right click the app and choose "Show Bundle Contents". There's a file called info.plist that contains all the data.
sammich at Ask.Metafilter.Com Visit the source
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:
- How can I auto run ccleaner on Mac OS X?Best solution by forum.piriform.com
- How can I mount a network drive in Mac OS X in Java?Best solution by Stack Overflow
- What is the most functional Mac OS X all-in-one printer?Best solution by Yahoo! Answers
- How to make an online Generator? What Program?Best solution by answers.yahoo.com
- Does anybody know what The Federal Open Market Committee does?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.