I'm trying to come up with an apple script I can run in order to fill out some web forms I do every day (JIRA ticket forms).
I've created this JS script which is working when I run it on Chrome's console:
document.getElementById('summary').value="Inserted text"
So now I create my applescript in order to be able to externally execute it but I always get "Syntax Error . Expected end of line, etc. but found unknown token."
This is the code:
tell application "Google Chrome"
execute javascript document.getElementById('summary').value="Inserted text" in document 1
end tell
I know tell application works, but I don't understand how to solve the Syntax Error and make the applescript work