on run argv
set scpt to first item of argv
tell application "Terminal"
do script "bash " & scpt
activate
end tell
end run
the issue is no matter what script command I tell it to do it always prints that command in terminal first. I don't want this echo behavior how do I disable it with using AppleScript.
Edit 1: this is a good example of pure AppleScript logic and the output looks horrible. Now while your able to do set +v bash command to turn the echo off let's say echo foo
was a really long command clearing the screen causes a flicker. I am asking how to enable echo off or set +v
without causing an echo to begin with?
tell application "Terminal"
set a to do script ""
activate
do script "echo foo" in a
do script "echo ardvark" in a
end tell
Edit 2: I tried using the set +v from bash with clear and it wasn't maintained
tell application "Terminal"
set a to do script ""
activate
do script "bash -c \"set +v\" ; clear" in a
do script "echo foo" in a
do script "echo hello world" in a
end tell