- Joined
- Feb 13, 2021
- Messages
- 4
- Reaction score
- 0
In outlook 2011 I had an apple script, that would nuke messages, means permanently delete them from any folder in outlook.
I also had a keyboard shortcut assigned to it and so it made dumping spam and other uninteresting stuff really easy without putting them first in the trash and next remove them from the trash.
The script no longer works in 365 (mac version), so I am looking for a new solution. Does anybody have one?
FYI here is the script I have:
I also had a keyboard shortcut assigned to it and so it made dumping spam and other uninteresting stuff really easy without putting them first in the trash and next remove them from the trash.
The script no longer works in 365 (mac version), so I am looking for a new solution. Does anybody have one?
FYI here is the script I have:
AppleScript:
tell application "Microsoft Outlook"
set theMsgs to the current messages -- selected messages
try
repeat with theMsg in theMsgs
permanently delete theMsg
end repeat
on error errMsg number errNum
set theSubject to subject of theMsg
set theFolder to name of «class stor» of theMsg
beep
display dialog errMsg & return & return & errNum & return & return & "(Erroring on message: " & theSubject & " in " & theFolder & ")" with icon 2
end try
end tell