Hacker News new | ask | show | jobs
by lorrin 5085 days ago
Anyone know how to control what the Open with button offers? E.g. it's offering "Open with Sublime Text 2" and I'd rather have an Open with MacVim.
3 comments

It's pretty simple and managed by OSX.

- Select a filetype you'd want to change the default application for and open the File Info (Cmd+I) - In the "Open with" section, select the app you want to be the default app for the filetype - To persist the default app along the whole filetype, also click the "Change All" button right below it.

You can also hold down the open button and a list of alternate applications that can be used to open the document drops down. Pretty handy.
That's up to the application. You can crack open the app packages for Sublime Text and MacVim and see how their Info.plist files differ. It's also worth looking at the Info.plist for TextEdit, which has a catch-all for all non-executable files.