Newbie Applescripting Safari

Hey, I was wondering how you could write a script that would go to a website, fill in some form elements, and submit the form (or press a different button, for that matter). I know that there is a do JavaScript action, but i’m not sure of how to use it. Any help or redirection to someplace I can find the information would be greatly appreciated.

Safari’s AppleScript support is virtually non-existent - there’s certainly nothing in its dictionary that’s going to help with this task, other than ‘do javascript’ with corresponding javascript code to do what you want.

The only other approach is UI scripting which has all kinds of other issues.

Tip: search the forums for “Safari AND do AND javascript”.