I have a simpler way. You'll want Homebrew if you don't already have it:. Now you need to find the id of the app you want to use, and assign it to the extension you want to use it for.
Both have extensive manpages. Of course, you'd need to make sure there's not already another entry for the UTI com.
Here's a more complete script that'll remove existing entries for a UTI and add a new one. Other than that, it should work quite well.
Changing the Default Application for File Types in OS X
Home Questions Tags Users Unanswered. How to change default app for all files of particular file type through terminal in OS X?
- Change your default browser.
- How to Change All Your Mac’s Default Apps?
- mac os x 10.8 psx emulator!
- Change file associations on the Mac for single or multiple files | RAW Mac;
Ask Question. Jens Erat Not a dupe, even though I kind of answered it there.
How to Change a File Type's Default App in macOS
Sorry about that. For power use, I like the accepted answer under a more recent Super User question, Is there a faster way to change default apps associated with file types on OS X? For simplicity, I like Daniel's answer below.
Get the default app id for. Use this app id for all. Would upvote this 50 times if I could.
How to unlink a file type in OS X
Great info. Worked like a charm for me in El Capitan. Working in Sierra too. Go to the application you want to use. If it is grayed out, click the "Enable" menu and select "All Applications. Click "Change All" if you want all files with this extension to be opened with the new application.
A box opens warning that this will affect all files with the same extension. Click "Continue. A published author and professional speaker, David Weedmark has advised businesses and governments on technology, media and marketing for more than 20 years. He has taught computer science at Algonquin College, has started three successful businesses, and has written hundreds of articles for newspapers and magazines throughout Canada and the United States.
Skip to main content.
Select the file you want to change in the Finder and press "Command" and "I" simultaneously. Close the "Info" window.
How to Assign a File Type to an Application in Mac OS X Lion - dummies
Your specified changes are saved automatically. About the Author A published author and professional speaker, David Weedmark has advised businesses and governments on technology, media and marketing for more than 20 years. Accessed 02 November