• 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: Expect commands in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expect commands in Applescript


  • Subject: Re: Expect commands in Applescript
  • From: Isaac Ordonez <email@hidden>
  • Date: Mon, 2 Feb 2004 12:02:15 -0800

I've actually written a script for expect that waits for the prompts and replies (to passwords in this case). But what I would like is to be able to add it to my Xcode Project and have it be an internal script so users won't have to install the script to be able to run the program. I guess one posibility would be to have the applescript create the expect script, run expect and then delete the script. Kinda strange way to go about it but... any other ideas?

Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114
On Feb 2, 2004, at 11:35 AM, Doug McNutt wrote:

At 08:58 -0800 2/2/04, Isaac Ordonez wrote:
is there anyway to have the script pause or wait for an output before sending more commands to the script?

No simple answer here but your subject line makes one think. . .

There is a lot of current work on the "expect" toolkit for use with Tcl. It's all quite UNIXy but it does provide a means for a shell script to do the kind of waits, and even make replies, that you are thinking about.

Perhaps you can make the shell command do the waiting before it replies to AppleScript.

<http://expect.nist.gov/>
--

--> In Christianity, man can have only one wife. This is known as monotony. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Expect commands in Applescript (From: Isaac Ordonez <email@hidden>)
 >Re: Expect commands in Applescript (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: deeply frustrating: how to copy/move a file from one place to another
  • Next by Date: Re: Using list from text file to create folder, search, and copy
  • Previous by thread: Re: Expect commands in Applescript
  • Next by thread: Re: Illustrator has placed images that need to be embedded
  • Index(es):
    • Date
    • Thread