Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference

Chapter 7 - Control Statements

Control statements are statements that control when and how other statements are executed. Most control statements are compound statements--that is, statements that contain other statements.

By default, AppleScript executes the statements in a script in sequence, one after the other. Control statements can change the order in which AppleScript executes statements by causing AppleScript to repeat or skip statements or go to a different statement.

This chapter describes the following control statements:

Chapter Contents
Characteristics of Control Statements
Tell Statements
If Statements
Repeat Statements
Try Statements
Kinds of Errors
How Errors Are Handled
Writing a Try Statement
Signaling Errors in Scripts
Considering and Ignoring Statements
With Timeout Statements
With Transaction Statements

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996