Control Webkit through AppleScript

I remember seeing a post (I think it was here) that had a way to load a webpage in a webView using applescript. recently I have been trying to do this but I keep running into problems. the script that I run right now is this

set webframer to call method "mainFrame" of window 1
	call method "loadRequest:" of object webframer with parameters {webaddress}

where webaddress has already been defined by my program. the problem, at least in this script is that “call method ‘mainFrame’ of window 1” doesn’t seem to return anything. this means webframer ends up being undefined and I get an error message saying that. I’m sure that this script isn’t perfect so any other problems you can point out is more than welcome.

Model: iBook (G3)
Browser: Safari
Operating System: Mac OS X (10.3.9)

The forums’ search feature is your friend:

http://bbs.applescript.net/viewtopic.php?id=9171

Jon

Thanks, I didn’t see that before.