• 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: Deivy Petrescu via AppleScript-Users <email@hidden>
  • Date: Thu, 9 Dec 2021 13:07:52 -0500


> On Dec 9, 2021, at 13:01, Jenni via AppleScript-Users
> <email@hidden> wrote:
>
>> On Dec 9, 2021, at 1:19 AM, Christopher Stone via AppleScript-Users
>> <email@hidden> wrote:
>>
>> 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.
>
>       Oh, well, I guess I can live with it.  Eventually it will scroll off
> the screen.  I originally had it in a separate file, but was trying a single
> file approach.  It's too bad that the formatting has to be so ugly.  Why are
> so many backslashes required anyway???
>
> expect \\\"password: \\\"
>
>       It's too bad that AppleScript doesn't have an equivalent to a heredoc
> syntax that would eliminate the escaping of quotes altogether.  I haven't run
> across one yet, if it does.
>
>       Thanks again for your responses, Chris.  I always appreciate seeing
> them on this list.
>
> Marc

Hi Marc, this formatting issue is not really SE's or Terminal’s fault.
I was just cursing the same issue, both in SE and BBEdit ( and html and …)
The problem is that “\”  is kind of an universal scape character to prevent
whatever comes next to be read as the language's command, so no matter what you
do, you never get what you want.
And, this is universal!!!   :-)


Best, be safe, wear mask, get vaccinated and keep social distance.

Deivy Petrescu
email@hidden






 _______________________________________________
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

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>)
 >Re: Running `expect` from inside AppleScript (From: Christopher Stone 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: [ OFFLIST ] Re: Running `expect` from inside AppleScript
  • Previous by thread: Re: Running `expect` from inside AppleScript
  • Next by thread: [ OFFLIST ] Re: Running `expect` from inside AppleScript
  • Index(es):
    • Date
    • Thread