Re: Skip a step in a repeat loop
Re: Skip a step in a repeat loop
- Subject: Re: Skip a step in a repeat loop
- From: Arthur J Knapp <email@hidden>
- Date: Fri, 31 Aug 2001 11:07:44 -0400
>
Subject: Re: Skip a step in a repeat loop
>
Date: Thu, 30 Aug 2001 22:40:30 +0100
>
From: Nigel Garvey <email@hidden>
>
>> From: Paul Berkowitz <email@hidden>
>
>> Somebody here (I forget whom - perhaps Nigel will remember) [posted a
>
>really
>
>> brilliant workaround - nay, solution - to this problem. I use it all the
>
>> repeat with i from 1 to 100 -- or whatever, any sort of repeat loop
>
>> repeat 1 times
>
>> if something "what you want" then
>
>> exit repeat --goes on to next iteratio
>
>> end if
>
>> --lots of blah blah
>
>> --tons of scripting
>
Arthur J Knapp wrote on Thu, 30 Aug 2001 13:37:19 -0400:
>
> I actually think that this may have been me, though I'm not sure.
>
I thought it was Arthur too, but I wasn't sure either. It's the sort of
>
thing he would have invented if he'd thought of it first. ;-) So I've
>
just done a text search through my personal archive and the earliest
>
mention I have of it is by.... Ray Robertson, who presented the idea to
>
this list for comment on 27th June 2000.
I just did my own search, and the really funny thing is that this
isn't the first time that I tried to take credit for this exact same
method:
>> Date: Tue, 23 Jan 2001 08:59:46 -0800
>> Subject: Re: "Next" in Repeat?
>> From: Paul Berkowitz <email@hidden>
>> Somebody. I'm afraid I forget who, once posted an ingenious solution
>> here to
>> meet the lack of a "next repeat" function in AppleScript.
>
>> repeat with i from 1 to num -- whatever the number of items is
>> set x to item i of yourList
>> repeat 1 times
>> all the time. I wish I could remember who suggested it - it was a
>> lurker, not a regular contributor. Perhaps Nigel Garvey remembers
>> - he was similarly impressed.
Arthur Knapp:
> Oh, I'll take credit, I don't mind... (though I wouldn't describe
> myself as a "lurker"). ;-)
I love ya, Ray Robertson... ;-)
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.natural-innovations.com/as/