|
An expression is a piece of AppleScript code that has a value. Expressions are evaluated every time the script pauses. You create expressions and read their values in the expressions pane, the fourth pane in the results drawer. You do not have to be in debug mode to create an expression. Expressions are saved when you save the compiled script. ![]()
Expressions have certain similarites to the variables pane:
If an expression uses a name that is undefined at the point where we are currently paused and in the call stack context that is currently selected, its value is marked as undefined. Note: Evaluating an expression is like running a little one-line script, and even a little one-line script can do powerful things. An expression that changes a variable’s value, or calls a handler in your script, can be a valid expression and therefore can have side-effects each time it is evaluated.
|
|||||||||||||||||