• 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: Simple Repeat until loop problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Simple Repeat until loop problem (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Simple Repeat until loop problem
  • Next by Date: Re: Finding lines containing foo in a file
  • Previous by thread: Re: Simple Repeat until loop problem
  • Next by thread: Re: Simple Repeat until loop problem
  • Index(es):
    • Date
    • Thread