views:

63

answers:

2

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.

+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.

http://www.freeimagehosting.net/image.php?54d510d331.jpg

Paul R
A: 

log seems to do the trick, but I wonder why I couldn't find it in the help.

Patrick
outis
@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
@Patrick: fair enough.
outis