2
1
How do I set TextMate 2 as default editor for text files in Mac OSX Sierra?
According to the 2nd answer in https://stackoverflow.com/questions/9370584/mac-os-x-set-textmate-as-default-text-editor I tried:
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.macromates.textmate;}'
But it doesn't seem to work - when I open a file with a .txt
extension it opens in TextEdit.
Note that I'm not looking for a manual solution like the accepted answer in https://stackoverflow.com/questions/9370584/mac-os-x-set-textmate-as-default-text-editor
Doesn't work :( – traveh – 2017-04-04T07:25:35.843