Script Editor Icon

Inserting action clauses into your script

Action clauses apply special conditions to the execution of a group of statements. You can insert prewritten action clauses into your script using the shortcut menu (also known as the contextual menu.)

To enclose text in an action clause:

Step 1

Select the lines in the script you want enclose by the action clause.

Step 2

Control-click in the selected area.

Step 3

Choose Action Clauses, and then choose the clause you want to use:

Ignoring App Responses: Script statements placed within this clause will not wait for a response from the target application.

Timeout Clause: A timeout clause extends the amount of time the script waits for a response from an application. By default, scripts wait for 2 minutes (120 seconds) before a timeout error is triggered.

Transaction Clause: This clause is used with specific applications, such as database applications, to reserve the use of a record or file during the script execution.

The selected statements will be enclosed within the clause, and the conditions of the clause will apply to them.

Related Topics

shortcut menus