Created
April 19, 2012 19:15
-
-
Save CraigWilliams/2423222 to your computer and use it in GitHub Desktop.
Bounce Selected Mail Messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Mail" | |
tell item 1 of message viewers | |
set selectedMessages to selected messages | |
repeat with aMessage in selectedMessages | |
bounce aMessage | |
delete aMessage | |
end repeat | |
end tell | |
delete every message in trash mailbox | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment