Why does this AppleScript not run in Outlook?
The script does not get recognized by Outlook as such because it has been saved as text (I created it inside Aquamacs).

If I open it in the AppleScript Editor and export it as script, then it works.

I found the solution here (third message from the top)