Joined September 2014
·

dacook

Melbourne, Australia
·
·

This is great, allows you to specify the default for the content type, rather than the file extension.

But the snippet given above didn't work for me, I had to quote the content like in k-funk's example. ie:

defaults write com.apple.LaunchServices LSHandlers -array-add "{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.2;}"
Achievements
1 Karma
0 Total ProTip Views