Ask Different is a question and answer site for power users of Apple hardware and software. 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 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.

share|improve this question
up vote 2 down vote accepted

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

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

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.