• 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
Re: Posting Form Data with UAS or iCAB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posting Form Data with UAS or iCAB


  • Subject: Re: Posting Form Data with UAS or iCAB
  • From: ehsan saffari <email@hidden>
  • Date: Tue, 23 Sep 2003 23:03:00 -0600

I wrote:

>I am trying to fill a form and post it with icab or URL Access scripting.
>
>Problem is I can't figure out how to send the form data so either
>application can fill the form, all my attempts have resulted in a unfilled
>form.
>
>here is one failing method
>
>set theDirectParam to "http://www.sunrisesunset.com/custom_srss_calendar.asp";
>set file_path to "daDisk:Desktop folder:Calfile.html"
>set theFlags to 1
>set theFormData to ("Select a city=Billings, Montana" & "+" & "month=2" &
>"year=2005" & "+" & "time_type=24-hour" & "+" & "want_twi_civ & VALUE=" &
>"1" & "+" & "want_mphase VALUE=" & "1" & "+" & "want_mrms VALUE=" & "1")

here's how:

set the action_URL to "http://www.sunrisesunset.com/calendar.asp";
set target_File to "daDisk:Desktop folder:Calfile.html"
set form_data to
"comb_city_info=Billings,+Montana;108.5;45.8;-7;1&month=10&year=2
003&want_twi_civ=1&want_mphase=1&want_mrms=1&time_type=1"

tell application "URL Access Scripting"
download action_URL to file target_File form data form_data replacing
yes
quit
end tell

The solution was to use OTSesionWatcher to see exactly how the form data
is posted when it's done manually with a browser.

cheers
ehsan
_______________________________________________
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.

  • Prev by Date: Re: Image thumbnails question
  • Next by Date: Re: Posting Form Data with UAS or iCAB
  • Previous by thread: Re: Posting Form Data with UAS or iCAB
  • Next by thread: Count and rename files
  • Index(es):
    • Date
    • Thread