Created
July 13, 2015 18:30
-
-
Save phil-monroe/315a1f2509fe13d8a133 to your computer and use it in GitHub Desktop.
AppleScript to move calendar invites to a folder for OS X Mail
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
using terms from application "Mail" | |
on perform mail action with messages theSelectedMessages for rule theRule | |
repeat with theMessageNum from 1 to count theSelectedMessages | |
set theMessage to theSelectedMessages's item theMessageNum | |
if theMessage's source contains "Content-Type: text/calendar" then | |
set mailbox of theMessage to mailbox "Calendar Invites" of account "my_account" | |
end if | |
end repeat | |
end perform mail action with messages | |
end using terms from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment