Re: Triggering a script via web
Re: Triggering a script via web
- Subject: Re: Triggering a script via web
- From: email@hidden
- Date: Tue, 5 Jun 2001 19:07:52 EDT
It sounds like what you want is a CGI (for Common Gateway Interface). The
fact that you did not mention CGIs in your question tells me that you are
totally new to the concept or are looking for something very different.
Here are 2 links. Decide if either is helpful.
http://www.linkedresources.com/teach/applescript/writingCGIs.html
http://www.linkedresources.com/tools/macoscli.html
What I am getting hung up on is the phrase "to control one of my machines."
The web is a public medium, and I doubt you want to grant control of your
machine to whatever goofball clicks into your site (if you really do, get
Timbuktu and advertise the password).
Usually a CGI receives posted form data from a web page and uses that
information to produce a customized response, often saving the submitted data
in some form on the server. If you are talking about anything time consuming,
like image manipulations or PDF creation on the server side, you may find
Applescript will choke under any sort of load. For pure text manipulation, I
find it can be quite zippy. I have created a 100% Applescript CGI shopping
cart solution which is capable of hundreds of sales a day <shameless
plug>everyone go buy something and prove me wrong -
www.fyhome.com</shameless>.
Applescript CGIs have some (sensible) limitations. They cannot invoke display
diaog nor any type of user interaction, and they cannot mount remote volumes
(there are clumsy workarounds using folder actions and the like).
Applescript CGIs require no plug-in. It's built into the language. They work
with WebSTAR, NetPresenz, Personal Web Sharing, and probably others, but not
yet with OSX.
With MacOS 9, you can also run Applescript's over TCP/IP. That's not the Web
per se, but it may be closer to what you want. Others can expound. I haven't
used this feature of AS.
If I've missed your point completely, I trust you will let me know.
On digest, please cc.
Jeff Baumann
email@hidden
www.linkedresources.com
In a message dated 6/5/01 1:07:26 PM, Christian Boyce wrote:
>
I want to make a website with buttons that a user can click. The buttons
>
would trigger applescripts to control one of my machines. I am pretty
>
sure this is easy to do if the server is here (mine)-- I'd add some kind
>
of a plug-in.
>
>
In this case, the webserver is somewhere else, not under my control, so I
>
can't add a plug-in. I keep thinking that I should be able to do
>
something like this:
>
>
http://myipaddress/script.html
>
>
where script.html would be the script.
>
>
I use a program called "Yada" from Stimpsoft to display messages on the
>
screen of one of my machines, and it's triggered via the web, so I feel
>
as though an applescript over the web is not a major leap.
>
>
Any ideas?
>
>
>
--
>
Christian Boyce
>
http://www.christianboyce.com
>
Home of the famous "BoyceCams"