Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
60 Command Definitions
IMPORTANT
If the file is longer than the end of file set by Set EOF, it is
truncated to the specified size and any additional data is
lost. If the file is shorter than the end of file set by Set EOF,
it is extended to the new length, but the additional data in
the new part of the file is meaningless.
ERRORS
Start Log 2
The Start Log command turns on logging in the Script Editor’s Event Log
window, which is shown in Figure 2-7.
If the checkboxes Show Events and Show Event Results are both selected, as
shown in Figure 2-7, subsequent commands sent by the Script Editor and the
results returned for each event are displayed in this window. You can choose to
display either the events or their results by selecting just one of the checkboxes.
You can also save a copy of the text in the Event Log window by choosing Save
As from the File menu.
Unlike most other scripting additions, the Start Log command is built into
the AppleScript extension. It doesn’t have a separate file in the Scripting
Additions folder.
Error
number Error message
–34 Disk <name> is full.
–38 File <name> wasn't open.
–44 Disk <name> is write protected.
–45 File <name> is locked.
–46 Disk <name> is locked.
–50 Parameter error.
–51 File reference number error.
–61 File not open with write permission.