Re: Finder thru Safari
Re: Finder thru Safari
- Subject: Re: Finder thru Safari
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 20 Jan 2009 13:47:49 -0500
On Tue, Jan 20, 2009 at 1:39 PM, Pooja <email@hidden> wrote:
> The goal is to upload a file via a web interface on safari.
If the goal is to upload a file, then the goal is to upload a file,
and Safari is just the way you're currently trying to accomplish that.
It's not a necessary part of the equation.
> steps to upload file:
> 1. login to web page
In other words, "submit an HTTP POST request with username and
password and possibly some other hidden values and get a cookie back"
> 2. click upload button
... which is how Safari renders an <input> element with a type
attribute of "file"...
> 3. choose file
... telling Safari which file you want to upload
> 4. upload done.
So as soon as you pick the file in the chooser, it's automatically
uploaded? You don't have to click another button on the web page?
You don't need a browser to upload a file or submit a web form, and
you certainly don't need to use GUI programming to remote control a
browser.. I would look into a directly-programmable, non-GUI HTTP
client, like curl. Or make your own web page with Javascript that
does the automation for you.
--
Mark J. Reed <email@hidden>
_______________________________________________
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