1
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.

jredfox_
  • 13
  • 4
  • Is there a particular reason for using Terminal (output, etc)? – red_menace May 31 '22 at 13:23
  • running do shell script won't display a UI @user3579815 – jredfox_ Jun 01 '22 at 07:20
  • A `.command` file will also run the shell script in the Terminal, but I’m trying to figure out why you would be using a shell script/Terminal command to call `osascript` to run an AppleScript to do a script in Terminal? – red_menace Jun 01 '22 at 13:55
  • @red_menace `.command` still echos the command on boot. I want basically a clear screen with the UI of terminal like it's suppose to run scripts but do It from AppleScript as running an app calling a command will simply execute it without a UI. – jredfox_ Jun 01 '22 at 14:15
  • How about [clearing the screen](https://stackoverflow.com/q/2198377/10853463)? – red_menace Jun 01 '22 at 14:39
  • @red_menace clearing the screen after ever command isn't good idea either. And the screen flickers it looks bad – jredfox_ Jun 02 '22 at 09:59
  • There are also a variety of terminal emulator commands and escape codes to do stuff such as backspace, move the cursor around, set bold/colors, etc. This would seem to be one of those situations where it helps to go into excruciating detail about what you are trying to accomplish. – red_menace Jun 02 '22 at 18:00

0 Answers0