A little research on apple's applescript page reveals that apache does not recognise applescripts as cgi's. That was limited to OS 9 servers. However there is a shareware application that will make it work. Here is the URL
http://www.sentman.com/acgi/