Quantcast
Channel: while
Viewing all articles
Browse latest Browse all 10

The AppleScript for loop (and while loop) examples

$
0
0
The AppleScript for loop (and while loop) examples alvin October 28, 2010 - 4:35pm

AppleScript for loop FAQ: How do I use an AppleScript for loop? (Also, how do you use an AppleScript while loop?)

This is actually a bit of a trick question, as there is no AppleScript for loop or while loop syntax. Instead you use the AppleScript repeat command, as shown in the following examples.

AppleScript for loop examples

Where you might expect an AppleScript for loop to iterate over a list, you use the AppleScript repeat with syntax:


Viewing all articles
Browse latest Browse all 10

Trending Articles