Struggling to execute a JavaScript code within a page using Applescript.
In the JavaScript, an AJAX function was defined like so:
var myFunction = function () {
// Here be the code...
}
I attempted this in Applescript:
do JavaScript "document.myFunction()"
However, the code does not seem to run.
Any insights? Thank you.