• 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: AppleScript to react to buttonpress on webpage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript to react to buttonpress on webpage


  • Subject: Re: AppleScript to react to buttonpress on webpage
  • From: email@hidden
  • Date: Thu, 29 Nov 2001 10:49:46 EST

I don't think you really understand what you are trying to ask. It sounds
like you might need to write a CGI script. Applescript can parse HTML, but
getting that html from a page displayed in a browser is clumsy at best, and
triggering an Applescript on your local machine via a button on a Web Page is
either difficult or impossible, and opens a security hole you don't want
anyway.

If your goal is to streamline signing on to a shell account from your local
machine based on username and password obtained from a remote site, you will
want to use URL Access scripting to grab the html, parse it, and then find a
scriptable telnet client to use the information. Or do some magic with OSX to
pass the info to the Unix side of things.

Maybe if you tell more about exactly what you are trying to do I could be
more helpful.

For Applescript CGI information, visit

http://www.linkedresources.com/teach/applescript/writingCGIs.shtml

Jeff Baumann
email@hidden
www.linkedresources.com



In a message dated 11/29/01 12:18:31 AM, email@hidden wrote:

>I need to write an application that:
>
>1) detects if a person is on a particular page on a web-site. (This page
>tells the user what their username/password is, and has a "connect" button
>underneath the text.)
>2) parses the page for the username/password text that's displayed
>3) passes those two variables as parameters to a Unix shell script when the
>user hits the "connect" button on that web-page.
>
>I know that AppleScript can parse the html content within a webpage. The
>problem I'm having is how to create a button on that web-page that
>AppleScript can react to. Can JavaScript/AppleScript talk to each other?


  • Follow-Ups:
    • Re: AppleScript to react to buttonpress on webpage
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Dynamic Records?? (or other alternatives)
  • Next by Date: Re: FTP Uploads using URL Access Scripting (3rd Posting)
  • Previous by thread: AppleScript to react to buttonpress on webpage
  • Next by thread: Re: AppleScript to react to buttonpress on webpage
  • Index(es):
    • Date
    • Thread