• 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: Scripting a Web-based form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting a Web-based form


  • Subject: Re: Scripting a Web-based form
  • From: Gunnar Weygold <email@hidden>
  • Date: Thu, 25 Dec 2003 19:30:02 -0800

On 12/24/2003 20:11, "Zachery Bir" <email@hidden> wrote:

> On Dec 24, 2003, at 4:09 PM, email@hidden wrote:
>
>> On Wednesday, December 24, 2003, at 12:43 PM, Gunnar Weygold wrote:
>>
>>> Using system events or another scripting addition, is it possible to
>>> fill-in
>>> text fields in a web-based form?
>>>
>>> The situation is this, our company uses Oracle 11i, which has a java
>>> web-based fill-in form. Moving data from our old database to the new
>>> one has
>>> shown some problems. Some of the data can not be completely moved
>>> over and
>>> will need to be re-entered. Currently, this data can exist in an
>>> Excel-type
>>> spreadsheet.
>>
>> Is it a Java form? Or an HTML form with some JavaScript?
>>
>> If it's HTML/JavaScript, you can easily script Safari (or Camino I
>> believe) to do this, by passing JavaScript to the browser using
>> AppleScript.
>>
>>> My plan is to use Applescript to fill in most of the data from the
>>> Excel
>>> spreadsheet into the fill-in form. Then I can select a few items in
>>> the form
>>> that need to be evaluated individually and submit it. Once accepted, I
>>> restart the script which will delete the row and move on to the next.
>>>
>>> The Excel side of it I can handle, the problem is that I don't know
>>> how to
>>> either select individual text areas or tab through them. Any help
>>> will be
>>> appreciated.
>>
>> If you absolutely can't use JavaScript to address the form elements,
>> then you *might* be able to use UI Scripting to puppet a user
>> enterring data manually... QuicKeys will also work for this, though
>> both solutions are a big kludge.
>
> Oh, for goodness sake. Why not just write a shell script to curl the
> various urls. If it's a GET request, you can build the URL dynamically.
> If it's a POST, you could create the POST object and pass it along on
> the command line.
>
> Zac
>

It's a Java form. The URL does not get involved, otherwise I'd find the
values and simply build the URLs.

--

The dragon made me do it.

Gunnar H Reichert-Weygold | Mac OS X & FreeBSD
The Pagan Library | TiBook G4 667
http://www.paganlibrary.com |
_______________________________________________
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: New AppleScript book
  • Next by Date: Re: Package Maker in Panther
  • Previous by thread: Re: new book
  • Next by thread: [OT] Shell scripting
  • Index(es):
    • Date
    • Thread