Skip to content

Instantly share code, notes, and snippets.

@adamphillips
adamphillips / outlook-cleanup.scpt
Last active January 22, 2020 17:23
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
@adamphillips
adamphillips / outlook-cleanup.scpt
Last active January 22, 2020 17:23
Outlook Cleanup - Step 2
# Some initial variables
set today to (current date)
set cutoff to 2 * days
set shortCutoff to 3 * hours
tell application "Microsoft Outlook"
set myInbox to folder "Inbox" of default account
set archive to folder "Archive" of default account
set theMessages to messages of inbox
@adamphillips
adamphillips / uk.co.29ways.outlook-cleanup.plist
Last active January 22, 2020 17:23
Outlook Cleanup - plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>uk.co.29ways.outlook-cleanup</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
@adamphillips
adamphillips / .vimrc
Last active January 18, 2022 13:57
Example .vimrc
syntax on
filetype plugin on
" Enable autocomplete
set ofu=syntaxcomplete#Complete
" General defaults
" ===================
set expandtab " use spaces for tabs