Re: Simple Repeat until loop problem
Re: Simple Repeat until loop problem
- Subject: Re: Simple Repeat until loop problem
- From: "Nigel Garvey" <email@hidden>
- Date: Thu, 22 Dec 2005 20:54:04 +0000
In my message of Thu, 22 Dec 2005 20:48:14 +0000, you wrote:
>Another idea, if it suits your purposes, is to run the script in the
>existing front window, which would save another from opening:
>
> tell application "Terminal"
> do script "ssh " & clientUserName & "@serverGoesHere; exit" in window 1
>
> delay 1 -- say
> repeat until (busy of window numberOfWindows) is false
> --stay in this loop until the script finishes
> end repeat
>
> display dialog ("Process Finished")
> end tell
Sorry! "Window 1", not "window numberOfWindows".
tell application "Terminal"
do script "ssh " & clientUserName & "@serverGoesHere; exit" in window 1
delay 1 -- say
repeat until (busy of window 1) is false
--stay in this loop until the script finishes
end repeat
display dialog ("Process Finished")
end tell
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden