Script Editor Icon

Inserting repeat routines into your script

Repeat routines require a selected variable with a list of items. You can insert a repeat routine into your script using Script Editor’s shortcut menu (also know as the contextual menu) .

To insert a repeat routine into a script:

Step 1

Select the name of the variable that will contain a list of items to process. Optionally, you may select a list of items, but be sure to include the opening and closing curly brace characters in the selection.

Step 2

Control-click in the selected area.

Step 3

Choose the desired repeat routine option from the Repeat Routines submenu:

Process Every Item: Processes every item of a list.

Special Case First & Last: Processes every item of a list while providing conditions for the first and last items in the list.

Special Case First Item: Processes every item of a list while providing a condition for the first item in the list.

Special Case Last Item: Process every item of a list while providing a condition for the last item in the list.

A repeat routine based on the previously selected variable name is inserted into the script text after the line that contained the previously selected text.

Related Topics

shortcut menus