• 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: John Delacour <email@hidden>
  • Date: Sun, 25 Aug 2002 09:18:40 +0100

At 10:43 pm -0500 24/8/02, Jeffrey Berman wrote:

You know, AppleScript might really take off some day once there is decent
documentation explaining the details as well as you've been doing on this
list.

Well said! It is very good to have Chris so active and informative on the list.

At 9:34 pm -0700 24/8/02, Christopher Nebel wrote:
Also, and this is irritating but not surprising and may depend on the command, login sequences like this are sensitive to timing. You'll probably need a "delay" statement between the initial command and the password.

...do script "telnet metropolis"
set w to window 1
delay 5
do script "nebel" in w
delay 1...

Wow! Try that with a Demon server on a Monday morning! 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?

JD
_______________________________________________
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: Christopher Nebel <email@hidden>
References: 
 >Re: Sending Commands to Terminal Windows (From: Jeffrey Berman <email@hidden>)

  • Prev by Date: Re: New Address Book in Jaguar 10.2...
  • Next by Date: Re: New Address Book in Jaguar 10.2...
  • Previous by thread: Re: Sending Commands to Terminal Windows
  • Next by thread: Re: Sending Commands to Terminal Windows
  • Index(es):
    • Date
    • Thread