• 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
posting a form (was New to Applescript)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posting a form (was New to Applescript)


  • Subject: posting a form (was New to Applescript)
  • From: email@hidden
  • Date: Sun, 4 Feb 2001 12:20:37 EST

Andrew,

Welcome aboard!

Forget about scripting IE or Navigator to post a form. Discover the joy of
URL Access Scripting. Here's a snippet:

set currentURL to "http://www.domain.com/form.acgi";
set destination to "MacHD:formpostresult"
set fieldVal to "12345"
tell application "URL Access Scripting"
try
download currentURL to file destination replacing yes form data
("fieldname=" & fieldVal) with progress
on error errmsg
display dialog errmsg
end try
end tell

This lets you control the data you post, eg. by extracting it from a text
file or database, and to capture the result (received as html) to a text file
and process it further, eg. to send an email, populate a database, or build a
summary html page. The possibilities are endless.

Jeff Baumann
email@hidden
www.linkedresources.com

Comparing MHz between the G4 and Pentium is like comparing the popular vote
between Bush and Gore; it's interesting, but it isn't what matters.


In a message dated 2/4/01 12:11:25 AM, you wrote:

>Message: 6
>Date: Sat, 03 Feb 2001 20:44:22 -0700
>Subject: New to Applescript
>From: Andrew Johnson <email@hidden>
>To: Apple Applescript developer mailing list
> <email@hidden>
>
>Hi I am new to Applescript, I am looking for a good browser scripting
>resource as I want to script IE or Netscape to routinely post a form. Thanks
>
>
>Andrew Johnson


  • Prev by Date: Re: Can a script create an applet?
  • Next by Date: GTQ additions
  • Previous by thread: New to Applescript
  • Next by thread: GTQ additions
  • Index(es):
    • Date
    • Thread