Click a button in Safari using Applescript
Hi,
I've been dabbling in Applescript for the last few weeks and while I can make it perform some pretty complex workflows, I still have virtually no knowledge of how to make it interact with JavaScript, and it's an essencial part of a new, larger applescript I'm working on to streamline a mundane task I'll need to perform a few hundred times.
In particular, with the page "https://www.google.com/doubleclick/studio/swiffy/" already opened in Safari, I'd like AppleScript to:
1) Click the "Browse" button.
2) Browse to find the file in question (FilePath)
3) Check the Checkbox.
4) Then click the "Upload and convert" button to start the conversion.
Could anyone tell me how to interact with these buttons? I'd appreciate specific solutions, since i can make neither head nor tails of JavaScript.
Cheers!
MacBook Pro, Mac OS X (10.7.4)