Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 61
Figure 2-7 The Script Editor’s Event Log window
SYNTAX
start log
RESULT
None
EXAMPLE
The example that follows demonstrates how to start logging and demonstrates
how logging works. To see descriptions in AppleScript of the logged events
generated by this example, open the Event Log window in the Script Editor
application by choosing Open Event Log from the Controls menu. Make sure
that both the Show Events and Show Event Results checkboxes are selected, as
shown in Figure 2-7.
start log
display dialog "Hello"
After you run the preceding script, the record of the events sent and the result
returned appear in the Event Log window. Because the Display Dialog
command in this script is not enclosed in a Tell statement, Script Editor sends
the command to the current application—that is, to itself. The event log for
the script shows both this implicit Tell statement and the result returned
by the Display Dialog command.