Created
June 6, 2015 11:56
-
-
Save pslobo/058417daa76f04b2c784 to your computer and use it in GitHub Desktop.
Let's Talk Tech How To
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
try | |
tell application "Mail" | |
set msgs to selection | |
if length of msgs is not 0 then | |
repeat with msg in msgs | |
try | |
move msg to mailbox "App Testing" of account "iCloud" | |
on error errmsg | |
return errmsg | |
end try | |
end repeat | |
return "Moved " & length of msgs & " messages to App Testing in iCloud Account'" | |
else | |
return "Please Choose Some Messages." | |
end if | |
end tell | |
on error errmsg | |
return errmsg | |
end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment