Open a new tab with the current directory on a mac

I found a nice script on crazylittlehacks Show archive.org snapshot and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run it like this:

tab

You may also pass a command that will be run in that newly opened tab:

tab ruby script/server

Note: This does not play too nice with Visor Show archive.org snapshot , because Visor will always be "window 1" for AppleScript. By modifying the script and replacing in window 1 with in window 2, the script will work in any terminal window but Visor.

Dominik Schöler