• 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: can apple GUI scripter fill out and submit a web page?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can apple GUI scripter fill out and submit a web page?


  • Subject: Re: can apple GUI scripter fill out and submit a web page?
  • From: julifos <email@hidden>
  • Date: Sat, 17 May 2003 09:25:04 +0200

> I need to fill out a web page programmatically for a point of sale
> system to submit a charge card payment form. I'm not sure I can program
> it in Java, and it is POST method, so I cannot simply construct and
> send a fabricated URL.

You can. Type "man curl" in a Terminal window.

> so I'd like the "gui scripter" to exactly emulate a user filling out a
> web page and clicking "submit"
>
> Is possible?

I'm not absolutelly sure. Anyway, I'd say you don't need it. Javascripting
posibilities offered by IE, Safari or Omniweb will make this a simple task:

set fillForm to "document.forms[0].elements[0].value='test'"
--> set value of first element of first form to "test"

tell app "Safari"
do javascript fillForm in document 1
do javascript "document.forms[0].submit()" --> submit ;-)
end tell

JJ
_______________________________________________
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: applescript-users digest, Vol 3 #1661 - 11 msgs
  • Next by Date: Re: Integer comparison in repeat loops
  • Previous by thread: Re: can apple GUI scripter fill out and submit a web page?
  • Next by thread: Re: applescript-users digest, Vol 3 #1661 - 11 msgs
  • Index(es):
    • Date
    • Thread