ターミナルからターミナルを開く

使用頻度はそんなに無いのですが、いざというときにめんどくさくないよねってことで。

#!/usr/bin/osascript
on run argv
	set dir to do shell script "pwd"
	set cmd to "cd " & quoted form of dir
	if argv ≠ {} then
		set cmd to cmd & " ;"
		repeat with i in argv
			set cmd to cmd & " " & quoted form of i
		end repeat
	end if
	tell application "Terminal"
		do script cmd
	end tell
	return
end run