Previous Page
Next Page

18.3. Logging Commands

These commands have to do with the script editor application's logging window or pane. They control the generation of the AppleScript messages that this window or pane is "watching" while it is open.

log

Syntax

log value

Description

If the event log pane or window is open, writes value to the log pane or window. This is useful for debugging. See Appendix A for an example.

stop log, start log

Syntax

stop log
start log

Description

If the event log pane or window is open, disables and enables automatic logging of Apple events sent between applications; has no effect on the log command.

Only the old version of Script Editor (version 1.9), and Script Debugger, implement stop log and start log properly. If you try to use them in Smile or in the current Script Editor, you get a runtime error.


Previous Page
Next Page