Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript CGI



Ken Graff,

Thanks for the information about CGIs under AppleScript. Now my eyes are opened I see right there in the Essential Sub-Routines note that "AppleScript CGIs are fully supported with Apache running on Mac OS X Server."

It doesn't strictly say that lacking Server one needs extra stuff (like acgi dispatcher), but it doesn't strictly say that one doesn't, either.

By the way, I don't see why the Essential Sub-Routines article insists that the applet have a name ending with ".cgi" anyway. Other CGIs can have any name whatsoever. Perhaps if I DID have OS Server I would know.

Best regards and Happy New Year

Nelson Byrne

Date: Sun, 28 Dec 2003 15:42:09 -0500
From: Graff <email@hidden>
Subject: Re: AppleScript CGI
To: Nelson Byrne <email@hidden>
Cc: email@hidden

You can change it to test.cgi after you save it. Just select it in the
Finder, get info on it (command-i), and change the text in the "Name &
Extension" section to from test.app or test.cgi.app to test.cgi and
then close the window.

Secondly, you can only use AppleScript CGU if you are using Mac OS X
Server. An AppleScript application needs to have events sent to it to
do its work and Apache doesn't do that. The version of Apache that
comes with Mac OS X Server has been modified so that it can send
events, there is an intermediate program that takes information from
the Apache program and sends events to your AppleScript application.

There is a workaround to do AppleScript CGI in the regular version of
Mac OS X. There is a 3rd party program which will act as a go-between
and will send events to your script so that it will work just like Mac
OS X Server. That program is "acgi dispatcher" and it works pretty
well. You can find it here:
<http://www.sentman.com/acgi/index.php>

- Ken
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.