• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
disappointed with URL Access Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: disappointed with URL Access Scripting
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Setting Default Browser in OS X
  • Next by Date: Re: What happened to "file"?
  • Previous by thread: Re: Translate a code of 2 characters to a text
  • Next by thread: Re: disappointed with URL Access Scripting
  • Index(es):
    • Date
    • Thread