Changing the default application for all files associated with an app

I have a text editor Coda, that I no longer want to use. Over the years, I have set it as the default app for editing many different file types (txt, html, xml, sh, php, py, csv, ini, plist, js, etc). Now I want to use a new text editor Atom. How do I tell OS X to no longer open Coda and open Atom instead, for all these files.


Please don't tell me to get info for a particular file type and change it there. I don't want to do this, there are literally dozens of filetypes I would have to hunt down and change. There must be a plist file somewhere where I can just edit and change all instances of 'Coda' to 'Atom'. This is a piece of cake in Windows.

MacBook Pro with Retina display, OS X Yosemite (10.10.5)

Posted on Aug 22, 2015 4:45 PM

Reply
14 replies

Aug 22, 2015 5:33 PM in response to evgstudios

It isn't just a list of extensions because Apple doesn't solely depend on extensions to link files to applications.

OS X uses Uniform Type Identifiers also.

If you look in the com.apple.launchservices.secure.plist, you can see the various associations.

Here is an example that uses the extension:

User uploaded file

These show how Safari is mapped to content types and URLs

User uploaded file

Here are Word's mappings (note that none are extensions):

User uploaded file

So, as Windows just uses an extension to map files to applications, you can easily push a list of extensions into a table with an editor for picking the app. There is no way to do that (that I know of) on a Mac.


You might try editing that plist file (it is in your user/Library/Preferences/com.apple.LaunchServices/). Log out and back in. However I'm not sure that is the method used to register those associations. Changing that file may not update it.


When you Get Info and Change All…, it builds the association in the LS database. There is a program called lsregister in the core services. It may be the thing that does the insert, but all anybody seems to really know about it is using it to reset the LS database (scan all installed apps and learn what file types it can open).

Nov 19, 2017 6:44 AM in response to Barney-15E

This is a very useful answer. I edited the ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure. plist file, doing a find-and-replace to replace the identifier of an old application (com.barebones.textwrangler) with the one of another app (com.barebones.bbedit) for 15+ filetypes. It worked perfectly! Thanks.

Aug 22, 2015 4:55 PM in response to evgstudios

Select any of the files you want associated. Press COMMAND-I to open the Get Info window and look at the Open With panel. Select the desired default application from the dropdown menu, then click on the Change All button. Repeat for each filetype using a file selection using the filetype.


Alternatively, change the actual file extensions for all the documents you will edit to the filetype extension created by the editor.

Dec 28, 2017 12:08 PM in response to Csound1

Ok, maybe not closed officially, but effectively closed. I have often sees responses from power users to the effect of "Sorry, we answered your question and that's the end of the story" when the question was clearly not answered to any real extent.


It's like dealing with corporate customer service anywhere else with an outright *refusal* to deviate from the script or offer any creative thinking whatsoever.


Thank you for hearing me and providing a nice counter example of a power user who listens to frustrated, non-technical customers. It is sincerely appreciated.

Dec 28, 2017 12:35 PM in response to BobHarris

Ok, Bob. And thank you for proving my original point. It's telling that the one time I FINALLY receive an in-depth, multi-paragraph answer from a power user is when it's to defend the low-effort answers given around here all the time. Whether the position is paid or not, useless and rude answers are still useless and rude.


Maybe Apple should consider handling its own customer support rather than taking advantage of unpaid volunteers, many of whom do nothing but leave a bad taste in the mouths of paying customers.

Mar 2, 2017 8:17 PM in response to Csound1

No, he's not rude. He's pointing out that someone can't read. Obviously, the OP knows about that option; they are looking for an alternative--something that makes sense when trying to change the association for a lot of file types. Providing a known answer when specifically requested not to is what's rude. People with thousands of points and level 9/10 that can't read... can't provide an answer.... even to say it's not possible would have been better. And yes, got a user ID just to respond to this.

Dec 28, 2017 12:29 PM in response to 83sjs8j

It's like dealing with corporate customer service anywhere else with an outright *refusal* to deviate from the script or offer any creative thinking whatsoever.

But no one participating in these forums is from Apple. They are just users who have been around a long time. They do NOT get paid. They are under no obligation to engage. And just because someone has a lot of points, does not mean they have all the answers. Sometimes, they just "Google" for information, if they are interested, and if they have the spare time to do that free work. Many of them have full time jobs to pay the bills.


The forum hosts (a small number of Apple employees) can do some administrative activities, such as move a post to the correct forum, edit out personal information, edit out offensive language, etc... But the hosts are not experts in the software, and are sufficiently busy keeping the wheels greased on the forum. The technical support is all from unpaid users.


A question can ONLY be marked "Answered" or "Helpful" by the person that asked the original question. If you wish to be that person, start a new "Post".

Thank you for hearing me and providing a nice counter example of a power user who listens to frustrated, non-technical customers. It is sincerely appreciated.

Taking out your frustrations on people that are not paid, does not encourage those people to engage.


I would suggest you start a new "Post" (see the "Post" button at the top of this page). Choose a forum that matches your version of macOS to post your question in. Explain in as much detail what your problem is, and what you have tried, and what happened. A new post puts you in the drivers seat. And try not to insult the people trying to answer. If their answer does not work, just say what happens when you try, and maybe someone else will engage.

Dec 28, 2017 1:05 PM in response to 83sjs8j

Maybe Apple should consider handling its own customer support rather than taking advantage of unpaid volunteers, many of whom do nothing but leave a bad taste in the mouths of paying customers.

They do. See the "Contact Support" link at the top of this page.


This is a forum for fellow users interact with each other on technical questions. At no time does this forum prevent you from contacting Apple Support, or from making a Genius Bar appointment at your local Apple store.


So far, you have not asked a question. You have just been telling high points users they are not good enough.


Pigging backing onto a 2 year old question, and opening with complaints is not a way to further the original question. I am not trying to be rude. I have been trying to get you to take a different approach that takes into consideration your audience.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Changing the default application for all files associated with an app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.