Script to nuke messages in Outlook 2011
Anybody know how to fix this?
FYI the script deletes a selected message immediately bypassing the trash.
on run
tell application "Microsoft Outlook"
if the class of the front window is message window then
set theMsg to the displayed message of the front window
my ProcessMsg(theMsg)
else
set theMessages to the selection
repeat with theMsg in theMessages
my ProcessMsg(theMsg)
end repeat
end if
end tell
end run
-- process the messages
on ProcessMsg(theMsg)
tell application "Microsoft Outlook"
move theMsg to deleted items folder
delete theMsg
end tell
end ProcessMsg
MBP, MM, MBP - 10.6 + Windooz XP on a hard partition