better applescript

no superuser privileges required