• 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: Since Apple Listens to this List... [Case Statements]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Since Apple Listens to this List... [Case Statements]


  • Subject: Re: Since Apple Listens to this List... [Case Statements]
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 11 Feb 2002 20:54:48 -0800

On 2/11/02 7:41 PM, "Paul Berkowitz" <email@hidden> wrote:

> On 2/11/02 4:11 PM, "Brennan" <email@hidden> wrote:
>
>> Well, I do believe I can live without case, I'd *love* to see 'next repeat'
>> though. Loop bodies are much tidier for it.
>
> I agree, but just in case you don't already know this workaround - invented
> by Ray Robertson - which works just as well:
>
>
> repeat -- any sort of repeat loop
> repeat 1 times
> --blah blah
> if something = whatever then exit repeat
> -- more blah
> end repeat
> end repeat

and if you're wondering "what if I want to escape the outer repeat loop?" :

set checked to false
repeat -- any sort of repeat loop
repeat 1 times
--blah blah
if something = whatever then exit repeat
-- more blah
if somethingElse = totallyZonked then
set checked to true
exit repeat
end if
--yet more blah
end repeat
if checked then exit repeat
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: Since Apple Listens to this List... [Case Statements] (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Create a folder with today's date as the folder name
  • Next by Date: Re: Create a folder with today's date as the folder name
  • Previous by thread: Re: Since Apple Listens to this List... [Case Statements]
  • Next by thread: Re: Since Apple Listens to this List... [Case Statements]
  • Index(es):
    • Date
    • Thread