Re: Sending Commands to Terminal Windows
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.