• 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: Skip current repeat iteration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Skip current repeat iteration


  • Subject: Re: Skip current repeat iteration
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 22 Oct 2002 11:45:36 -0700

On 10/22/02 11:11 AM, "Paul Berkowitz" <email@hidden> wrote:

> The best way, if you have to continue statements below the "move on to next"
> point, is to use Ray Robertson's wonderful 'next repeat equivalent for
> AppleScript:
>
> repeat with i from 1 to n -- or any other repeat loop type
> repeat 1 times
> -- lots of stuff
> if x = y then
> exit repeat -- just the 1 times repeat
> end if
> --lost more stuff
> end repeat


Ooops. I forget to close the inner repeat:

repeat with i from 1 to n -- or any other repeat loop type
repeat 1 times
-- lots of stuff
if x = y then
exit repeat -- just the 1 times repeat
end if
end repeat -- 1 times
--lost more stuff
end repeat


--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: Skip current repeat iteration (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Do shell script and special characters
  • Next by Date: Re: Recording in the script editor - Jaguar
  • Previous by thread: Re: Skip current repeat iteration
  • Next by thread: Re: Skip current repeat iteration
  • Index(es):
    • Date
    • Thread