I am using the Mac OS X Apple Script Editor and (while debugging) instead of writing a lot of display dialog
statements, I'd like to write the results of some calculation in the window below, called "Result" (I have the German UI here, so the translation is a guess). So is there a write/print statement that I can use for putting messages in the "standard out" window? I am not asking to put the messages in a logfile on the file system, it is purely temporary.
views:
63answers:
2
+3
A:
You can use the log
command, which puts messages into the "Event" pane of the three panes at the bottom of the window ("Events", "Replies", "|", "Result").
e.g.
log "foo"
will put
(*foo*)
in the Events pane.
Paul R
2010-05-01 12:39:09
A:
log
seems to do the trick, but I wonder why I couldn't find it in the help.
Patrick
2010-05-01 12:39:11
outis
2010-05-01 12:46:42
@outis, this is a misunderstanding, I posted my own answer in parallel to Paul R. So it was not a comment, but an answer with an additional comment.
Patrick
2010-05-01 12:48:21
@Patrick: fair enough.
outis
2010-05-01 22:33:24