Opening specified path in Terminal’s new tab
Updates
- It uses now click menu instead of keystroke “System Events” command, because in some cases when you had this script assigned to shortcut that used Ctrl or Shift modifiers, those modifiers were sent together with Cmd to “Terminal” producing invalid behavior.
- It waits 0.5 second when window is busy just in case Terminal.app was not running and it is just loading the shell which makes it busy for short while too. Fixes incorrect behavior of opening extra tab when Terminal.app was not running.
If you ever wondered how to open specified path in new tab of Terminal.app or reuse current one if it is not busy (running a command), here’s a script you may use:
Where #{e_as(e_sh(dir))} is your desired folder. This is modified chunk of TextMate‘s command script found at Mark Eli Kalderon’s Blog. Thanks Mark!
Note: Mark’s TextMate command script does not open anything when Terminal.app has no windows or it is not running.

Just what I was googling for, I wanted an alias to make another terminal tab for the location of the current window. I just replaced the desired folder above with $(pwd) and it worked perfectly. Thanks!