1 2 3 4 5 6 7
#!/bin/bash osascript >/dev/null 2>&1 <<EOF tell application "Terminal" activate do script with command "$@; exit" end tell EOF