Re: Running `expect` from inside AppleScript
Re: Running `expect` from inside AppleScript
- Subject: Re: Running `expect` from inside AppleScript
- From: Christopher Stone via AppleScript-Users <email@hidden>
- Date: Thu, 9 Dec 2021 03:19:24 -0600
On Dec 08, 2021, at 23:58, Jenni via AppleScript-Users
<email@hidden> wrote:
> I got it to work. However, it prints the entire script to the Terminal
> window before processing it, so it looks like this:
Hey Marc,
That's just how do script works with the Terminal.
I don't know of any way to suppress it using the do script mechanism, but you
can write your script to a file and run the file.
set s to "~/Downloads/test.sh"
tell application "Terminal"
tell front window
do script s in selected tab
end tell
end tell
So what you'll see is only the file path:
Funaho$ ~/Downloads/test.sh
--
Best Regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden