scripting microsoft Entourage--bypass warning message

How can I get bypass a warning message from Entourage. I 've got a script which sends out emails which works untril it hangs on a warning dialog box “A script is attempting to send a mesage. Some scripts can contain…” How can I have applescript tell entourage to just ignore this and send the message?



You have to manually go to Entourage preferences, under security, and uncheck the “warn before allowing an external application to send mail”. Next time you’ll run your script, the warning message shouldn’t show. I haven’t find a way to script Entourage preferences to do this.

As a security measure, it would not make sense to let this property be scriptable. So the user WILL have to set this up manually.