Statements
Every script is a series of statements. Each statement consists of a command and may contain additional information needed to perform the command. Statements can be simple, such as this one-line command: tell application "Finder" to activate Statements are usually complex, containing more than one statement. The following example includes several statements. When you run a script, each statement is executed in order. However, some statements can control the order in which statements are executed, as in the next example. This example includes two control statements:
|
||||
Table of contents |