image

Outliner Editing

image

In addition to viewing values in an outliner, you can edit those values, and use those values to help edit a script.

Changing a Value

In an outliner, a scalar property value is writeable, and can be changed — unless it is badged with the crossed-out pencil icon (image) indicating that it is not writeable.

Be careful! When you change the value of a property ultimately belonging to an application, you are changing real world facts about that application in real time. For example, if you change the value of the name property of a document file object belonging to the Finder, you change the actual name of an actual file.

On the other hand, when you’re debugging a script and you use this feature to alter a value belonging to the script (such as a variable), this feature is harmless and extremely useful.

To edit a simple scalar value (a string or number):

The entry in the Value column will become editable. When you’re done:

If a value is an editable enumeration, it is represented as a pop-up menu listing the possible enumerator values. To edit the value:

Editing a Script

A line of an outliner represents a reference to an element or property (or a variable). You can capture this reference as AppleScript code, to use it in a script. To turn a line of an outliner into a reference:

A line of an outliner also represents the value of whatever it is a reference to. You can capture this value. To turn a line of an outliner into a value:



image
Outliner