Applescript or Automator to bulk delete Outlook calendar items older than X months or years?

%3CLINGO-SUB%20id%3D%22lingo-sub-420145%22%20slang%3D%22en-US%22%3EApplescript%20or%20Automator%20to%20bulk%20delete%20Outlook%20calendar%20items%20older%20than%20X%20months%20or%20years%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-420145%22%20slang%3D%22en-US%22%3E%3CP%3ESome%20searching%20has%20led%20me%20to%20believe%20that%20Outlook%20is%20scriptable%20using%20AppleScript.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20wondering%20if%20it%20would%20be%20possible%20to%20create%20a%20script%20that%20will%20ask%20for%20a%20length%20of%20time%2C%20or%20a%20date%2C%20and%20then%20delete%20all%20calendar%20items%20in%20Outlook%20that%20are%20older%20than%20that%3F%20And%20if%20so%2C%20are%20there%20any%20AppleScript%20experts%20here%20who%20could%20help%20do%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EThanks%2C%3C%2FP%3E%3CP%20class%3D%22%22%3EScott%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-420145%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOutlook%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-529183%22%20slang%3D%22en-US%22%3ERe%3A%20Applescript%20or%20Automator%20to%20bulk%20delete%20Outlook%20calendar%20items%20older%20than%20X%20months%20or%20years%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-529183%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317834%22%20target%3D%22_blank%22%3E%40scottmcc%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20are%20some%20repositories%20with%20AppleScript%20examples%20that%20may%20contain%20solution%20or%20direction.%3CBR%20%2F%3ETake%20a%20look%20at%20this%20link%3A%20%3CA%20href%3D%22https%3A%2F%2Fgist.github.com%2Ftalkingmoose%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgist.github.com%2Ftalkingmoose%3C%2FA%3E%3C%2FLINGO-BODY%3E
Visitor

Some searching has led me to believe that Outlook is scriptable using AppleScript.

 

I'm wondering if it would be possible to create a script that will ask for a length of time, or a date, and then delete all calendar items in Outlook that are older than that? And if so, are there any AppleScript experts here who could help do that?

 

Thanks,

Scott

2 Replies
Hi @scottmcc

There are some repositories with AppleScript examples that may contain solution or direction.
Take a look at this link: https://gist.github.com/talkingmoose

@scottmcc Did you find a solution? I have had to rebuild my profile several times and when I do, I get flooded with meetings from 2014 forward, including any recurring meetings that were set up without an ending date. I always cancel the series, but I can't figure out where they "live" to cancel them permanently.