Skip to content

Instantly share code, notes, and snippets.

@pslobo
Created June 6, 2015 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pslobo/058417daa76f04b2c784 to your computer and use it in GitHub Desktop.
Save pslobo/058417daa76f04b2c784 to your computer and use it in GitHub Desktop.
Let's Talk Tech How To
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