Re: Running `expect` from inside AppleScript
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