Skip to content

Instantly share code, notes, and snippets.

@adamphillips
Last active January 22, 2020 17:23
Show Gist options
  • Save adamphillips/9cbc41d1183a45ddb92588a0af77ce1b to your computer and use it in GitHub Desktop.
Save adamphillips/9cbc41d1183a45ddb92588a0af77ce1b to your computer and use it in GitHub Desktop.
Outlook Cleanup - Step 1
tell application "Microsoft Outlook"
set myInbox to folder "Inbox" of default account
set theMessages to messages of inbox
repeat with theMessage in theMessages
try
# rules will go here
on error errorMsg
log "Error: " & errorMsg
end try
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment