I'm trying to launch 3 tabs and run a script in each with applescript. So far I havent been able to get this done. Currently I have:
tell application "Terminal"
activate
do script "ping google.com"
tell application "System Events"
keystroke "t" using {command down}
do script "ping yahoo.com"
end tell
tell application "System Events"
keystroke "t" using {command down}
do script "ping msn.com"
end tell
end tell
This will launch 3 tabs but the pings don't execute in the last two tabs?
I'm probably missing something easy here.