Skip to content

Instantly share code, notes, and snippets.

@stve
Created January 5, 2015 03:27
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 stve/48d0f1b400aec8d7ec19 to your computer and use it in GitHub Desktop.
Save stve/48d0f1b400aec8d7ec19 to your computer and use it in GitHub Desktop.
mark deleted items as read in Microsoft Outlook
if application "Microsoft Outlook" is running then
tell application "Microsoft Outlook"
set deletedMessages to messages of deleted items
repeat with aMessage in deletedMessages
if is read of aMessage is not true then
set aMessage's is read to true
end if
end repeat
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment