I'm trying to launch 3 tabs and run a script in each with AppleScript. So far I haven't 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 three tabs but the pings don't execute in the last two tabs.
I'm probably missing something basic here.
I made changes in tell application "Rosetta-Terminal"
"Rosetta-Terminal got an error: "ping google.com" doesn’t understand the “do script” message." number -1708 from "ping google.com"
– Solid Soft Jan 21 '22 at 10:40