do <commands>

do "set the name of button 1 to Cancel"
do "set the" && propertyName && "of button 1 to" && quote & "Hello World!" & quote


Build some lines of script as a string and run it. The result of the script will be the result of the do command. The value of the variable it will be set to whatever it is in the script passed to do. Currently, other local variables used in the script will not be visible to the script that calls do.