Need help with Firefox AppleScript

Hi
I am totally new to applescripts and have a question: How can I tell Firefox to save the current page it is showing on its current tab?

For Example I have this code:

tell application “Firefox”
OpenURL “www.google.com
save in “test.html”
end tell

but the save part does not work.

I appreciate your help.
Thanks.

How does this relate to EagleFiler? There’s built-in capture key support for Firefox, so you shouldn’t have to write a script. Just press F1.