Chapter 6 - Expressions
An expression is any series of AppleScript words that has a value. You use expressions to represent or derive values in scripts. When AppleScript encounters an expression, it converts it into an equivalent value. This is
known as evaluation.Chapter 3 describes and gives examples of the simplest kinds of expressions, called literal expressions, which are representations of values in scripts. This chapter begins by describing how to evaluate expressions. It then describes five additional types of expressions:
- variables and script properties, which are named containers for values
- the AppleScript property Text Item Delimiters, which determines the text item delimiters used by AppleScript in all scripts
- reference expressions, which are expressions that derive the value of
an object- operations, which are expressions that derive values from other values
Chapter Contents
- Results of Expressions
- Variables
- Creating Variables
- Using Variables
- The "A Reference To" Operator
- Data Sharing
- Scope of Variables
- Predefined Variables
- Script Properties
- Defining Script Properties
- Using Script Properties
- Scope of Script Properties
- AppleScript Properties
- Text Item Delimiters
- Reference Expressions
- Operations
- Operators That Handle Operands of Various Classes
- Operator Precedence
- Date-Time Arithmetic