[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Using MPW to create CGIs



Question: What is the best way for a MPW build command to generate
a MacPerl MacHTTP CGI Script?

Background:
I'm using a program executing in the MPW environment to generate the
source for a set of CGI programs. The output of this process is
currently a set of text files which I copy and paste one-at-a-time
into a MacPerl window, so that I can save each one as as a MacHTTP
CGI Script.

I read through the MacPerl.Frontend document and it looks like
MacPerl's "Save" AppleScript event is intended to automate this job
but I don't know how to invoke it from MPW and I don't know what glue
might be needed. I have not used AppleScript or Frontier very much;
I'd appreciate some advice on whether one of these is the right
choice and some help in getting pointed in the right direction.

I also considered building CGI's without using MacPerl. Only two of
the many resources change from one CGI program to the next: the Perl
script itself is in an easy-to-understand TEXT resource, but there is
a binary resource of type TFSS, id 255, that varies quite a lot, I
don't know what its purpose is, and I don't know how to generate it
except via MacPerl. As an experiment, I modified the TEXT resource in
a CGI, I left the TFSS resource as it was, and then I ran the result.
It worked. It behaved as per the minor modification I made, but I
don't intend to adopt this approach on a large scale unless/until I
understand more about that TFSS resource. It seems likely that
ignoring it will break something.

Thanks in advance for your help,

   -Paul-          paul.b.patton@hbc.honeywell.com