Err, normally you would not do so. $.writeln() will output to the ESTK's console, but even that is discouraged for production scripts -- if you want to reach the user you should use alert(), and if you want to pass data you should probably write to a file?
Raise your hand if you remember 'COPY CON'?
I suspect you can use:
var f = new File('CON'); f.open('w'); f.writeln("test");
but I wouldn't be surprised if either it didn't work or if the Microsoft police showed up at my doorstep tomorrow morning.
Edit: added f.open().
Uh, copying it to CON doesn't capture it -- unless you add some more Window trickery by adding "> myCapture.txt" after ... what?
If you are going to open a file anyway, call it "log.txt" and be done with it
I suppose it all depends on what you mean by capture!
Thanks for your help, guys. I think $writeln() was the command I was looking for. I was hoping it would write back to the system console but it writes to the app console, so writing to a file, as you suggested is the answer.