Enable OSX Sierra Context Menu Launch:
The process for older OSX versions is similar, so you should still be able to use this as a guide.
Open up Automator (using Spotlight or finding it under "Applications") and click "New Document".
Select "Service" from the tiled menu.
Search for "Run Shell Script" in the upper left to find our action type. Drag it over to the main panel, or you can double click it.
In the top bar, set "Services receive selected" to "files or folders".
Select your shell type of choice, or leave it as
/bin/bashif you're unsure. Change the "Pass input" setting to "as arguments".
For Sublime Text 3, enter the following in the text input:
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
For Sublime Text 2, enter the following in the text input:
/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl -n "$@"
Save as "Open in Sublime". You can save it as whatever you want, but this will become the display name of the service.
Now when you right click on a file or folder, under "Services" you will see "Open in Sublime".
I also set up a service for adding a file or directory to the current Sublime window. You can duplicate the process above using the
-a flag instead of
-n in the command, and name it something appropriate like "Open in Current Sublime Window".