Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Sublime Text 3 beta and would like to re-associate all the filetypes I have linked to ST 2 with ST 3.

Is there any way to perform this as a batch operation?

For example:

$ open_all_with_st3 py txt tsv css scss js ...

Or better yet, get a list of all types associated with ST 2 and then assign them to ST 3.

I really don't fancy doing the Get Info->Open With->Change All … dance with dozens of filetypes.

share|improve this question

I figured it out. I opened ~/Library/Preferences/com.apple.LaunchServices.plist and replaced all occurrences of com.sublimetext.2 with com.sublimetext.3.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .