• 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: Bill Cheeseman <email@hidden>
  • Date: Thu, 22 Dec 2005 12:43:22 -0500
  • Thread-topic: Simple Repeat until loop problem

on 2005-12-22 12:24 PM, Maccin at email@hidden wrote:

> repeat until (busy of window numberOfWindows) is false
> --stay in this loop until the script finishes
> end repeat

> This script should stay in the repeat until loop while ssh is running.
>  When ssh quits the loop should end and the "Process Finished" dialog
> should appear.  However, when I run this script it will go through the
> repeat look straight to the dialog-box.  This happens even when I
> change the bool to false.  Any suggestions would be appreciated.

Last time I looked, a repeat block with nothing in it did not repeat. That
would certainly explain what you're seeing when you set the condition to
'false'.

In any event, you probably should put a 'delay n' statement in the repeat
loop. Last time I tested for this issue (OK, it was years ago), a repeat
loop without a delay statement would monopolize the CPU enough to slow other
processes way down, so that for example the ssh might not execute to
completion for a long time. A brief 'delay n' would allow it to complete at
full speed.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes


 _______________________________________________
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: 
 >Simple Repeat until loop problem (From: Maccin <email@hidden>)

  • Prev by Date: Simple Repeat until loop problem
  • Next by Date: Re: How do I test if app is running / file is open?
  • Previous by thread: Simple Repeat until loop problem
  • Next by thread: Re: Simple Repeat until loop problem
  • Index(es):
    • Date
    • Thread