• 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: Things I thought I knew, but didn't - variable scope in repeat loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Things I thought I knew, but didn't - variable scope in repeat loops


  • Subject: Re: Things I thought I knew, but didn't - variable scope in repeat loops
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sat, 27 Dec 2008 16:19:26 -0500

On Sat, Dec 27, 2008 at 12:48 PM, Doug McNutt <email@hidden> wrote:
>
> Mark got quoted this way:
>>>
>>>  Applescript builds a list of values (or an iterator/generator) and
>>>  sets i to the next value at the top of the loop; it doesn't look at
>>>  the current value of i to determine what the next value of i should
>>>  be.   So you can do anything you want to i inside the loop and it
>>>  won't affect the loop control logic:
>
> Doesn't that imply a limit on the number of times through a repeat loop?

Not if it's an iterator/generator instead of a list, which I assume is
the case for counting loops.

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Things I thought I knew, but didn't - variable scope in repeat loops (From: Richard Rönnbäck <email@hidden>)

  • Prev by Date: Re: Thirteen Scripters Scripting
  • Next by Date: Re: Thirteen Scripters Scripting
  • Previous by thread: Re: Things I thought I knew, but didn't - variable scope in repeat loops
  • Next by thread: Re: Things I thought I knew, but didn't - variable scope in repeat loops
  • Index(es):
    • Date
    • Thread