Skip to content

safari – How to Convert JavaScript to AppleScript

  • by'about:blank');var%20newDoc%20=%20sourceWindow.document;;newDoc.write(''%20+%20'Source%20of%20'%20+document.location.href%20+%20''%20+'');newDoc.close();var%20pre%20=%20newDoc.body.appendChild(newDoc.createElement(%22pre%22));pre.appendChild(newDoc.createTextNode(document.documentElement.innerHTML));%20

I want to convert the JavaScript written above to AppleScript and run it in the Safari Current tab. How do I convert it?

Thank you in advance 🙏

Leave a Reply

Your email address will not be published. Required fields are marked *