disappointed with URL Access Scripting
disappointed with URL Access Scripting
- Subject: disappointed with URL Access Scripting
- From: Michael Turner <email@hidden>
- Date: Tue, 7 May 2002 10:32:11 -0400
Apparently "form data" (otherwise known as "POST" method) doesn't work
with URL Access Scripting. Fine. I don't really know how, but I guess I
just go do this with Perl. Why do I keep trying to accomplish tasks
with this widget which only works half the time?
/Michael Turner
<SCRIPT>
set target_URL to "
http://www.link-systems.com/cgi-
bin/webmaster/formtest.cgi"
set the destination_file to ((path to desktop as string) & "test.txt")
set addressField to "2515+Krueger+Ln"
set cityField to "Tampa"
set stateField to "FL"
set form_data_field to "?Delivery+Address=" & addressField & [line break]
"&City=" & cityField & "&State=" & stateField
with timeout of 300 seconds
tell application "URL Access Scripting"
activate
download (target_URL & form_data_field) to file [line break]
destination_file replacing yes -- works
--download target_URL form data form_data_field [line break]
to file destination_file replacing yes without progress and unpacking
-- doesn't work
end tell
end timeout
tell application "Finder" to open alias destination_file
</SCRIPT>
RESULT: Execution Error: "URL Access Scripting got an error: Application
isn't running."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.