I am looking for a way to reassign default editor on OS X. For example I want to reassign all file types opened by TextEditor with TextWrangler.

Probably it has something to do with the defaults command but I do not know how to list current assignments and change them.


There is a command line utility called Duti which can do this.


There is no easy way to do this using built-in commands.


You might want to take a look at this question on Super User. It's not really as easy as editing .plist file with defaults.

You must log in to answer this question.

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