URL Access Scripting & Form Posting
URL Access Scripting & Form Posting
- Subject: URL Access Scripting & Form Posting
- From: Boonee <email@hidden>
- Date: Wed, 7 Mar 2001 20:31:15 -0500
I am a novice scripter but have been actively following this list and
have caught the bug to learn more and do more. I have been
experimenting with URL Access Scripting and need some assistance on
scripting a post. The form is an Amazon.com form which is here -
http://www.amazon.com/exec/obidos/tg/stores/static/-/music/search/104-
8728514-4507965. It asks for the user to enter the artist, title and
label and press the button "search now". I would like to use URL
Access Scripting instead of Netscape Navigator or Explorer to send
this info and then save the page returned to a file on disk.
I understand the basic format but cannot figure out the form data
part. Please help.
I have this so far:
set vfilePath to "Macintosh HD:Downloads:SourceData"
Set i to "
http://www.amazon.com/..." --the post data should go
here - artist, title and label
tell application "URL Access Scripting"
try
download i to file vfilePath with progress
on error err
Display Dialog err
return
end try
end tell