scripting netscape 4.76
scripting netscape 4.76
- Subject: scripting netscape 4.76
- From: "Joseph D'Andrea" <email@hidden>
- Date: Wed, 3 Jan 2001 12:35:00 -0500
I need to write a script to tell netscape to hit a web site URL with
some post arguments and save the result in a file. Sounds simple...
but I have not been able to make much progress with this. Is there
anyone who can offer some assistance (like writing the script for me).
Here is the script that I have so far
tell application "Netscape Communicator"
OpenURL "
http://dev.west21.com/et/netscapetest.tpl" to file
"Macintosh HD:joey3" post data "abc=def"
end tell
But the only thing it does is hit the URL (at least it does
something).... but the file "joey3" never gets created and the post
arguments are not passed.
Here's the netscape dictionary...
OpenURL: Opens a URL. Allows for more options than GetURL event
OpenURL string -- URL
[to 'FSS '] -- file destination
[toWindow integer] -- window iD
[flags integer] -- Binary: any combination of 1, 2
and 4 is allowed: 1 and 2 mean force reload the document. 4 is ignored
[post data string] -- Form posting data
[post type string] -- MIME type of the posting
data. Defaults to application/x-www-form-urlencoded
[progressApp 'psn '] -- Application that will
display progress
Result: integer -- ID of the loading window
_________________________________________________
Joseph D'Andrea email@hidden
WEST21.com Internet services for the 21st Century
http://www.west21.com/
_________________________________________________