Text Loops by Zed Lopez


This is experimental and mostly made out of the undocumented features in the Standard Rules the docs call on us not to use.

Ways you can also loop through text (uword = unpunctuated word; pword = punctuated word):

``` repeat with ch running through characters in T: repeat with w running through words in T: repeat with uw running through uwords in T: repeat with pw running through pwords in T: repeat with line running through lines in T: repeat with p running through paragraphs in T: ```

"Characters" may be abbreviated as "chars" and all of the above can also have an index specified:

``` repeat for ch in chars of T with index i; ```