User wwwand change it to
User myNameReplace myName with the short name of the logged in user. Then you need to enable server side includes in the same file. Uncomment these two lines:
#Addtype test/html .shtml #AddHandler server-parsed .shtmland then restart the webserver (sudo apachectl graceful, or via the Sharing preferences panel). You should now be able to use Applescripts inside your webpages. You can do this by using:
<!--#exec cmd="/usr/bin/osascript MYAPPLESCRIPTNAME"-->
You can either replace MYAPPLESCRIPTNAME with a file, or with the script written out. I use this with some other programs to control my EyeTV program from the web. Also, you can use this to view your iCal calendars over the web or view the current track in iTunes.
[robg adds: I'm not sure if there are any security issues to consider with Apache running as the logged in user -- logic tells me that there are, but I couldn't find any obvious red flags with a quick Google search. If anyone is aware of any dangers, please post a comment!]

