Hi TextMate folks.

I've written a little applescript to do what I regularly need to do - open a folder in TextMate if and only if it's not already open, from the command-line. (I have command-line scripts to set up my workspaces for each project for me.) Is there another way to do it? Not that I could see, although it's tricky to keywords-search that one. I kind of feel it should be a command-line option to the "mate" command.

Script is up here:
Comments and criticism appreciated. Please feel free fork it and make your own modifications and improvements if it is useful to you.


Have fun,