Man I tried everything. This didn't help, nor did a more aggressive
statement to let www run anything with no password prompt:
www ALL=(ALL) NOPASSWD: ALL
Finally I tried just editing my httpd.conf to run Apache as my local logged
in user, bad practice I know but now the appscript works from
Apache/mod_python, it hangs. Probably because Apache doesn't run as a
normal user so it can't get a GUI context. This is a bummer, I was able
i solved that problem by modding the sudoers file:
Cmnd_Alias DVR_cmds=/usr/bin/osascript, /DVR/webAccess/scripts/*.sh
www ALL=(DVR_ra)NOPA