View Single Post
  #1  
Old October 6th, 2002, 03:44 PM
buc99's Avatar
buc99 buc99 is offline
Don't Tread on Me!
 
Join Date: Aug 2001
Location: The US of A!
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
buc99 is on a distinguished road
Angry Applescript and CGI help please ...

I am trying to learn applescript.

The more I delve into it the more I start to believe it is almost a dead language.

Very little information on it.

I've yet to find a proper explanation on how to read a "Dictionary".

And now, it seems that Apache does not want to work with applescript cgi's OSX. Does anyone know if it is possible to use Applescript as cgi in OSX 10.2? Do I need to tweak some setting in Apache?

When I run a test.cgi script written in Applescript I get the following in the browser:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I get the following from the server log:

[Sun Oct 6 14:37:07 2002] [error] (8)Exec format error: exec of /Library/WebServer/CGI-Executables/test.cgi failed
[Sun Oct 6 14:37:07 2002] [error] [client xx.xx.xx.xx] Premature end of script headers: /Library/WebServer/CGI-Executables/test.cgi


Any ideas how to get this to work?

Thanks.
SA
__________________
I can do everyhting on my Mac I used to do on my PC, plus alot more.

--Me
Reply With Quote