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