I was changing the default program to open .txt files with and I noticed 2 entries for TextMate. Its one of those little things that annoy me. How can I fix it? I didn't see 2 directors of TextMate.app in /Applications.!

Get Info Open With

2 Answers 2


Mac OS X automatically keeps a database of all applications and their corresponding file-types called the LaunchServices database. You can examine where both of your TextMate executables are located by opening Terminal.app from /Applications/Utilities and entering:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump |  /Applications/TextMate.app/Contents/Resources/mate

This will open a long file full of all Applications that your LaunchService DB "knows" on your Mac in TextMate. Examine this file for the "path:" of your duplicate entires of "TextMate".

It´s quite likely that you´ve already removed the second "TextMate" but your LaunchServices still remembers it. I guess you should tell the Datatbase to rebuild by entering:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user

into the Terminal and then restarting your computer. This may lead to your Mac forgetting some custom "open with.." assignments though.


Or, it could mean that you have two different versions of TextMate installed. Try searching for textmate in spotlight and see how many applications it finds. Throw the old one in the trash and you should be good to go.

I get the same thing with Numbers as I still have the '09 and '10 versions installed... :)


  • 2
    ...why are you advertising (presumably your own) website here, what´s the benefit for the community? In addition, that link is broken.
    – Asmus
    Mar 10, 2011 at 12:18
  • Why not? Is there a Stack Exchange policy against promoting my own creation via my sig line in exchange for my participation on this site? Who does it harm?
    – Piko
    Mar 15, 2011 at 5:50
  • Read the FAQ: apple.stackexchange.com/faq It clearly states not to use signatures. You can put links on your user page, but should not put them in your posts.
    – Asmus
    Mar 15, 2011 at 7:09
  • The FAQ says: "Please don’t use signatures or taglines in your posts." That language means that signatures are optional. If sigs are prohibited, the FAQ needs to be updated.
    – Piko
    Mar 21, 2011 at 18:50

You must log in to answer this question.

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