Syntax

set <container> to <expression>

set name of button 1 to "OK"

Explanation

The set command is a synonym for the put command with reversed parameters.

It is 100% identical to writing put <expression> into <container>.

See Also