

There are a couple of ways I could get this info. I want to change from Mou to Sublime Text, so I need Sublime Text’s bundle ID.
#Mac set default app for extension code#
You can grab the source code at Sourceforge 3. The program that makes it easy to change default apps via the command line is a free, open source app named duti 2.

Find out the current default for an extension.
#Mac set default app for extension how to#
Before you can jump in, though, you need to install a program & also know how to gather a few pieces of key information. After I fix that problem (using the command line, natch), I’d like to quickly re-set my default apps.

md, choose Get Info (or just select the file & press Command-I), find the Open With section, select Sublime Text, press Change All, press Continue when asked if I’m sure, close the Info window, done. Most Mac users of even mid-level sophistication know the drill: right-click on any file ending in. So when I click on foo.md, I want it to open in Sublime Text instead of Mou. For a while I wanted the very nice (& free for now!) app Mou to open those, but now I’ve switched to Sublime Text for my Markdown editing 1. I use Markdown a lot, so I’m constantly creating files that end in the. Changing default applications on a Mac using the command line & then a shell script
