• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running `expect` from inside AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Running `expect` from inside AppleScript
      • From: Jenni via AppleScript-Users <email@hidden>
References: 
 >Running `expect` from inside AppleScript (From: Jenni via AppleScript-Users <email@hidden>)
 >Re: Running `expect` from inside AppleScript (From: Jenni via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Running `expect` from inside AppleScript
  • Next by Date: Re: Running `expect` from inside AppleScript
  • Previous by thread: Re: Running `expect` from inside AppleScript
  • Next by thread: Re: Running `expect` from inside AppleScript
  • Index(es):
    • Date
    • Thread