Created
December 10, 2014 20:11
-
-
Save brycehamrick/a621f818454fa1168129 to your computer and use it in GitHub Desktop.
Outlook Archive Script
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" | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full path of file: /Users/brycehamrick/Library/Application\ Support/Microsoft/Office/Outlook\ Script\ Menu\ Items/Archive\cA.scpt