[quote="jon4than"]I like the idea, but it looks as though the path to subl in main.scpt is a hardcoded path specific to your machine. I was able to fix it by simply changing the path to the location within Sublime Text 2.app:
do shell script "/Applications/Sublime\\ Text\\ 2.app/Contents/SharedSupport/bin/subl " & "'" & currentPath & "'"
i can't believe i'm such an idiot.
thanks for the fix. github repo updated with fixed version of the app.
fwiw, i tried to come up with a way to let applescript find the path to Sublime Text 2 (in case user keeps it somewhere other than /Applications) and use that path to find the way to subl, but for some reason even when applescript had the path right, the do shell script command would bomb telling me that there was no such file
set st2 to POSIX path of (path to application "Sublime Text 2")
set subl to st2 & "Contents/SharedSupport/bin/subl "
do shell script quoted form of subl & "'" & currentPath & "'"
i could see in the "results" box in the applescript editor that it was getting the path to subl right, but it never worked. so for now, thanks to you jon4than, hard coded to at least the right place.