Edit

SysLog (text)

Return type:  none

Definition:  Writes the text to the log file (preceded by a date/time stamp). Useful for debugging scripts. Note that MoneyWorks also sometimes writes things (error messages, typically) to the log file. On Mac, log file output is also copied to the system.log.

You can easily show the log file by clicking the Log File icon in the Script Editor toolbar.