Created
August 9, 2011 18:07
-
-
Save oparrish/1134751 to your computer and use it in GitHub Desktop.
Move Message(s) to All Mail
This file contains hidden or 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" | |
set theSelectedMessages to selection | |
set theMailbox to "[Gmail]/All Mail" | |
repeat with theMessage in theSelectedMessages | |
set messageAccount to account of mailbox of theMessage | |
tell application "Mail" | |
move the theMessage to mailbox theMailbox of messageAccount | |
end tell | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment