Re: PHP and Applescript
Re: PHP and Applescript
- Subject: Re: PHP and Applescript
- From: has <email@hidden>
- Date: Sun, 10 Feb 2008 15:23:23 +0000
On 10 Feb 2008, at 05:39, Brian Johnson wrote:
On Sat, 9 Feb 2008, Grace Finn wrote:
I originally tried this with acgi dispatcher and it worked OK, but
I could not get Windows users to stop looking for the acgi file.
Someone told me to try php instead.
I don't understand. You put an HTML form on the web. It uses a .php
script or an .acgi 'script' to turn that into commands to the
robot .. either way the mechanism is visible in the form action.
I don't understand either. Why should Windows users be looking for the
acgi file, which sits behind the scenes on your web server? Or do you
mean Explorer is trying to download it, in which case there's
something screwy with your set-up?
They're roughly equivalent, except that it seems your robot-control
app is AE aware, so you have to turn commands into AppleEvents
somewhere along the way. I'd stick with AS. If you can run it
directly from AS (without the web), you can begin to 'webify' it by
moving actions into your .acgi. I think it'll be much saner than php.
I'd tend to agree. PHP may be good for web programming, but it doesn't
integrate well with the desktop and will be a chore for anything non-
trivial. If your web interface needs are simple, ACGI should be just
about adequate for that and will integrate much better with desktop
applications. Or go with Python or Ruby, either of which will give you
web programming capabilities comparable to PHP's and application
scripting support as good as AppleScript's.
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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