Re: Help clicking a web button with AppleScript without GUI scripting
Re: Help clicking a web button with AppleScript without GUI scripting
- Subject: Re: Help clicking a web button with AppleScript without GUI scripting
- From: Matt Neuburg <email@hidden>
- Date: Wed, 11 Jun 2008 06:52:42 -0700
- Thread-topic: Help clicking a web button with AppleScript without GUI scripting
On Fri, 6 Jun 2008 18:04:10 -0700, Joe <email@hidden> said:
>I have been trying to script Safari to fill in a web form and then
>simulate clicking the "submit" button.
There is no need to use Safari at all for this. What I do is to use "curl"
to send a POST request identical to what Safari *would* say if you *did*
fill in the web form and click the submit button. To find out what that is,
fill in the web form and click the submit button while intercepting HTTP
messages (you can do this in several ways; I use Interarchy).
There is an example of this approach in my AppleScript book, though it no
longer works because the server at the far end changed the Web page (and
therefore no longer accepts the page and POST arguments that were working at
the time the book was written)....
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden