Subject: | |
From: | |
Reply To: | |
Date: | Fri, 18 May 2007 08:14:49 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Bill,
Do you need to run WebStar, or are you willing to use Apache that is
built in?
I have some Applescripts that I use to build our business cards in
Quark that I drive from a web page. I have Perl handle the cgi call and
reformat the database query result to text and store it as a file, and
then use a system call to execute the Applescript.
For low volume, it "works", a bit of a kludge, but it does the job.
I changed the group the www user runs under so that it can access the
gui otherwise it will not do anything because of access priviledges.
OS X server is supposed to have the apache plugin to allow it to
execute Applescripts directly, but I am not sure what it does about
scripts that access apps as the apps need access to the gui.
Lloyd
> From: Bill Steele <[log in to unmask]>
> Date: May 17, 2007 12:23:36 PM EST
> Subject: WebSTAR AppleEventExample
>
>
> In the WebSTAR cgi-bin, as installed, we find AppleEventExample.acgi.
> Pointing a form at it does nothing. Trying to open it in Script
> Editor does nothing (perhaps saved as run-only, a lovely way to supply
> an example).
>
> Anybody know what this thing is?
>
> What I really want is the syntax for an Applescript CGI with WebSTAR 5
> on OS X. Does it still use "on handle CGI request searching for path
> args..." etc.? or is there some new syntax for stdin or some such?
>
> When I use one of my old OS 9 CGIs, it runs and appears in the
> toolbar, but doesn't do anything. Googling the topic produces tons of
> information on using Applescript CGIs with Machttp. Plus a lot of
> stuff in German and Japanese.
> --
>
|
|
|