Created
May 6, 2013 15:58
-
-
Save bruienne/5526042 to your computer and use it in GitHub Desktop.
Mark unread archived email as read. Keep your unread count in Outlook 2011 true.
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
tell application "Microsoft Outlook" | |
set archiveFolderId to id of folder "Inbox" of folder "On my computer" | |
set theCounter to unread count of mail folder id archiveFolderId | |
set newestMsgId to count of messages in mail folder id archiveFolderId | |
repeat with i from 0 to theCounter | |
set is read of message (newestMsgId - i) of mail folder id archiveFolderId to true | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment