Name
set
Syntax
setvariableName
tovalue
Description
Assigns value
to variableName
.
Example
set x to 5
There is a synonym using the word returning
instead of set
, with the parameters in reverse order, like this: 5 returning x
. But I have never seen this synonym used.
Get AppleScript: The Definitive Guide, 2nd Edition 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.