#!/bin/sh## Open a new terminal in the cwd#CWD=`pwd`osascript<<ENDset thePath to "$CWD"set myPath to (POSIX file thePath as alias)try tell application "Terminal" activate do script with command "cd \"" & thePath & "\"" end tellend tryEND