Yes, I chmod:ed the file.
The log-entry in error_log reads:
Premature end of script headers: /Library/WebServer/CGI-Excecutables/test.cgi
I don't know if this is a good sign (it recognizes the applescript code, but something is wrong in it) or bad sign (this message would appear if you try...