Skip to content

Instantly share code, notes, and snippets.

@bruienne
Created May 6, 2013 15:58
Show Gist options
  • Save bruienne/5526042 to your computer and use it in GitHub Desktop.
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.
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