By request, I did an “Open In TextMate” Finder toolbar icon for Leopard.
I also took the opportunity to write a new script, based on Simon Dorfman’s. Clicking the toolbar icon now opens the selected file or files if there is a selection; otherwise it opens the current directory. You can also drag-and-drop files to the icon to open those.
Behind the scenes, the script is all AppleScript, without dropping into the shell. Feels a bit more robust.
A single TextMate window will open, containing all selected or dropped items in a project.
I put my icon inside the bundle, so it should appear with no extra effort. I also toggled a flag in the bundle so you don’t see the script appear and disappear in the dock when triggered.
Download OpenInTextMate.zip, extract the file somewhere (I keep it in
/Applications/Scripts), then drag it onto the Finder toolbar. You’ll need to wiggle it a bit for the toolbar to catch on.
If you like your toolbar all grayscale, feel free to use (save the linked icon file, not the displayed PNG image) instead, and copy it into the script as described here.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30