Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
36 Command Definitions
ERRORS
Log 2
The Log command displays a specified string between comment characters
(* and *) in the Script Editor’s Event Log window. For more information about
the Log Events window, see page 61.
Unlike most other scripting additions, the Log command is built into the
AppleScript extension. It does not have a separate file in the Scripting
Additions folder.
SYNTAX
log stringToLog
PARAMETER
stringToLog An expression that evaluates to a string or to a value that can be
coerced to a string. The resulting string is displayed in the Event
Log window.
Class: String
Error
number Error message
–108 Out of memory.
–192 Bad name for file.
–1700 Can't make some data into the expected type.
–1701 Some parameter is missing for <commandName>.
–1703 Some data was the wrong type.
–1704 Some parameter was invalid.
–1705 Operation involving a list item failed.
–1718 Reply has not yet arrived.