Or, how to log from an AppleScript (saved as application) and/or view the Event Log?
None of the AppleScript's log statements can be found. I have tried adding the following to the launchd plist:
<key>StandardOutPath</key>
<string>/tmp/theProgram.log</string>
<key>StandardErrorPath</key>
<string>/tmp/theProgram_error.log</string>
after which, the files were happily created, but remain empty. Nothing is in the system log for this application, which is confirmed running.
Are the event logs saved somewhere?
Is setting a launchctl log level
necessary for this?