Name

+ — addition

Syntax

                     number1 + number2 date + integer
                  

Description

The addition operator is not overloaded to perform string concatenation; see on the ampersand operator (&) later in this chapter. A date plus an integer yields date increased by integer seconds.

The result is an integer if the first operand is an integer and if the second operand can be coerced to an integer without loss of information. Otherwise, the result is a real.

Get AppleScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.