OpenInSublimeText is a complete rip from Henrik Nyh's Open in Textmate gadget:
Thanks to Henrik for putting that handy little gadget together!
I wanted the same functionality in the OS X Finder for Sublime Text 2 and lightly hacked Nyh's stuff to point at Sublime Text. Then, hacked a little icon together to make it all nice.
Here's how I'd do it:
Make a
scripts
folder in your Applications folderDownload a copy (or git clone) of OpenInSublimeText.app and drop it in that scripts folder. Example (from the Terminal):
mkdir /Applications/scripts cd /Applications/scripts git clone https://github.com/itd/OpenInSublimeText.git OpenInSublimeText.app
Drop the
OpenInSublimeText
onto a Finder window toolbar.
Visually motivated? Watch a video at http://www.youtube.com/watch?v=1mkDYW2nsCc
Well, that's about it. You're ready to go!
If you have questions you can send me a note.
Original goodness by Henrik Nyh Thanks, dude!
Mere hacks by Kurt Bendl "Being dragged about on the coattails of giants."
If you are looking for a configurable text editor for OS X, give Sublime Text 2 a go. It's totally awesome!