• 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: Wed, 8 Dec 2021 22:20:35 -0600

On Dec 08, 2021, at 12:11, Jenni via AppleScript-Users
<email@hidden <mailto:email@hidden>>
wrote:
> I'm trying to combine multiple scripts into a single AppleScript but I'm
> running into problems.  Everything here works perfectly when called in an
> external bash script, but not as written below.

Hey There,

Why are you trying to run `expect` in a do shell script command within the
context of a Terminal.app script?

The proper syntax would be do script "<your script".

You don't need to resort to System Events to open a new window either:


tell application "Terminal"
    set newTab to do script -- create a new window with no initial command
    set current settings of newTab to settings set "Grass"
end tell



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

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

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