People have asked me how to launch a program through the terminal in the background but with it’s own terminal screen similar to the way the “start” command in the Windows CMD prompt works. Well here it is. Add the following two files (start.applescript) and start to your path, and make them executable (chmod +x {start.applescript,start}).
One point of notice is to always encapsulate strings with spaces that should be one parameter in quotes.
gistfile1.bash
# /usr/bin/env /bin/sh
start.applescript "`pwd`" $@start.applescript
#! /usr/bin/env /usr/bin/osascript
on run argv
tell application "Terminal"
set AppleScript's text item delimiters to " "
set cwd to first item of argv
set l to rest of argv
do script "cd " & cwd & " && " & (l as text)
activate
end tell
end run