tell application "Terminal"
do script "echo Hello world"
end telltell application "iTerm"
set newWindow to (create window with default profile)
tell current session of newWindow
write text "echo Hello world"
end tell
end telltell application "Terminal"
do script "echo Hello world"
end telltell application "iTerm"
set newWindow to (create window with default profile)
tell current session of newWindow
write text "echo Hello world"
end tell
end tell