AppleScript math FAQ: Can you show some examples of basic AppleScript math operations, like addition, subtraction, multiplication, and division?
Sure, let's take a look at some AppleScript math examples.
AppleScript addition syntax/examples
To add a few numbers together just use the normal
set syntax and the
+ operator, like this AppleScript addition example:
set one to 1
set two to 2
set answer to one + two
display dialog answer
That example displays the number 3.