• 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: Sending Commands to Terminal Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Commands to Terminal Windows


  • Subject: Re: Sending Commands to Terminal Windows
  • From: Christopher Nebel <email@hidden>
  • Date: Sun, 25 Aug 2002 11:57:31 -0700

On Sunday, August 25, 2002, at 01:18 AM, John Delacour wrote:

I would wish to wait until the server had responded, no matter how long that was, and I see that we have in the Terminal dictionary

contents string [r/o] -- the currently visible contents of the window

Wouldn't it be better to run a loop to exit when the contents shows that the server has hailed?

Probably, yes -- I was being lazy. If you plan on doing a lot of interactive shell tool scripting, you should check out "expect" <http://expect.nist.gov>, which was actually designed for that sort of thing. It's not part of the standard Mac OS X distribution, but I'm told it's fairly straightforward to build.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sending Commands to Terminal Windows
      • From: John W Baxter <email@hidden>
References: 
 >Re: Sending Commands to Terminal Windows (From: John Delacour <email@hidden>)

  • Prev by Date: Exchanging events between OS 9 and OS X machines
  • Next by Date: Re: Jaguar, AS 1.9. Coercing alias to string still returns styled text
  • Previous by thread: Re: Sending Commands to Terminal Windows
  • Next by thread: Re: Sending Commands to Terminal Windows
  • Index(es):
    • Date
    • Thread