Created
November 11, 2020 03:41
-
-
Save logic2design/1918509e74a68282011591cbfc6adcd4 to your computer and use it in GitHub Desktop.
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
#IMAP | |
tell application "Mail" | |
with timeout of 90000 seconds | |
set theSelectedMessages to selection | |
repeat with theMessage in theSelectedMessages | |
set theMailbox to "Test" | |
tell application "Mail" | |
move the theMessage to mailbox theMailbox of account "Outlook" | |
end tell | |
end repeat | |
end timeout | |
end tell | |
#On My Mac | |
tell application "Mail" | |
with timeout of 90000 seconds | |
set theSelectedMessages to selection | |
repeat with theMessage in theSelectedMessages | |
set theMailbox to "Test" | |
tell application "Mail" | |
move the theMessage to mailbox theMailbox | |
end tell | |
end repeat | |
end timeout | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment