Skip to content

Instantly share code, notes, and snippets.

@brycehamrick
Created December 10, 2014 20:11
Show Gist options
  • Save brycehamrick/a621f818454fa1168129 to your computer and use it in GitHub Desktop.
Save brycehamrick/a621f818454fa1168129 to your computer and use it in GitHub Desktop.
Outlook Archive Script
tell application "Microsoft Outlook"
activate
set msgSet to current messages
if msgSet = {} then
error "No messages selected. Select at least one message."
error -128
end if
set theMsg to item 1 of msgSet
set theAccount to account of theMsg
set archiveFolder to folder "Archive" of theAccount
repeat with aMessage in msgSet
move aMessage to archiveFolder
end repeat
end tell
@brycehamrick
Copy link
Author

Full path of file: /Users/brycehamrick/Library/Application\ Support/Microsoft/Office/Outlook\ Script\ Menu\ Items/Archive\cA.scpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment