"JavaScript for Automation" is brand new in OSX Yosemite. I am not familiar with AppleScript as I don't really like how verbose it is. But Javascript looks great! However, I can't figure out how to send debug messages to the message window of ScriptEditor! I've looked everywhere... Is this possible? What is the code to do it?
I tried:
console.log("Hello World");
But that doesn't work. Any ideas? This should be so simple!
Note: This isn't an HTML/Javascript question. I am talking about the App called "Script Editor" in OSX using the Javascript language instead of AppleScript. I would tag this question with "Script-editor" but SO won't allow me to tag.
OK Apparently it was easy enough.
this.console.log("Hello World");
I found this by simply typing this
into a script and running it. It returns back GlobalObject
for this
with plenty of interesting properties and functions including the console
property which contains a log()
function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With