MACSCRPT Archives

September 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 1 Sep 2009 10:29:40 +0200
MIME-version:
1.0
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Content-type:
text/plain; charset=US-ASCII; format=flowed; delsp=yes
Subject:
From:
Emmanuel LEVY <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7BIT
Parts/Attachments:
text/plain (60 lines)
Satimage-software provides a special cgi which makes the http request  
into a plist and sends it to a IP address + port you define. At the  
other end, you can open a port in Smile and define a handler to which  
the plist will be sent. The handler's response (typically: "Content/ 
type blah, linefeeds, <html> blah") is sent back to the client's  
browser via Apache.

Emmanuel


On Sep 1, 2009, at 4:14 AM, Lloyd Butler wrote:

>>
>> Would like to know what, if anything, people are using to run  
>> AppleScript as a CGI?
>
> I use Perl to handle the request and have Perl call the AS applet to  
> do it's thing. I use that to build business cards for the company.  
> The Perl code handles the http request and queries the database with  
> parameters passed in and then writes out a text file, and launches  
> the AS applet that reads in the text file and drives Quark and  
> Distiller to built the cards.
>
> I have also worked on applets that make web service calls to get  
> their data that were kicked off in the same sort of way.
>
>>
>> The web page for acgiDispatcher seems to have disappeared.
>> There was a piece of code called PeacePipe and it appears to meet  
>> the author's needs and has not been modified or updated since.
>> There was an Xserve Apache thing "ACGI Enabler" that appears to no  
>> longer be provided by Apple.
>> There is nothing on the Apple site (that I could find) about  
>> running AppleScripts as a CGI.
>> Sal's AppleScript book does not appear to have ACGI in the index so  
>> I'm guessing it is not covered.
>> There used to be a message that AppleScript responded to (something  
>> like handle as CGI) and that was obsoleted in 2008 (according to  
>> the Apple AppleScript online docs).
>> WebStar was bought by Kerio and was discontinued.
>>
>> The thing that started it all: MacHTTP appears to be available and  
>> appears runs under Classic on Tiger.
>>
>> My preference would be something that Apache would use to talk to  
>> AppleScripts, something like acgiDispatcher but in use by others  
>> and supported.
>>
>> Suggestions?
>>
>
> ACGI Enabler was only shipped with XServe/OS X server after 10.2 I  
> think. They disabled the portion of the desktop OS that could make  
> use of it.
>
> I think Apple has left the cgi world to the more popular players  
> like Perl and PHP. In each you can call AS code with a little work.
>
> Lloyd

ATOM RSS1 RSS2