Outlook 2016 For Mac Appelscript10/22/2021
For the most part this works OK though some of these folders are effectively proxies for the bin but I can’t quite bring myself to admit it. The script started like this:For my personal email I use Gmail with an intricate array of filters to siphon messages off into different folders as they arrive. The user-interface of the software is adaptive as per the MacOS and all the features have been designed to suit the.In Outlook 2011 for Mac, I was able to use an AppleScript to move currently-selected messages from the main Outlook window. Now, the MacOS users can also setup their emails in Outlook for Mac and engage in better email communication. Nothing motivates in the morning like a 3 figure unread email count… No, not reallyOutlook for Mac from Microsoft has enhanced the outreach of Windows-based applications to MacOS platform.
![]() ![]() Outlook 2016 Appelscript Software Is AdaptiveSince my key goal involved testing the age of the message I also stashed the current date in a variable along with 2 cut-off intervals that I would switch between depending on the type of message.Finally I added a bit of logging so I could see that things were happening as expected.Put all together this looks like this. That looks something like this I then extracted the properties I wanted to test against into separate variables. The one I found most handy was the message class in the Mail Suite as this described the properties of the message that I could test against when creating my rules.Before I could start writing individual rules though, it was necessary to write some initial code to iterate through the messages in my inbox. You will then be able to browse the dictionary that describes all the elements, classes and properties available for working with Microsoft Outlook. Find Microsoft Outlook and select it. ![]() I now I have a self-tidying inbox based on a programmable set of filters that are flexible, easy to update, version controlled and run automatically.Having got everything up and working I switched from using the Script Editor to using my normal Atom editor. If there was a problem then this will be non-zero and hopefully there will be an indicator in the log of what went wrongSo there we have it. I then loaded the script from ~/Library/LaunchAgents using cd ~/Library/LaunchAgentslaunchctl load -w uk.co.29ways.outlook-cleanup.plistOnce loaded I tested the script using launchctl start uk.co.29ways.outlook-cleanupTo tell if the script ran correctly, I used launchctl list | grep outlookThe second column indicates the return code of the last run of the agent which all being well will be 0. All the other files in ~/Library/LaunchAgents were scoped to a particular domain so I decided to do the same with mine. Use your mac as tv for xbox one sThis way whenever I move to a new Mac my inbox cleansing will move along with all the rest of my configuration.Automated inbox cleansing with Outlook 2016 and AppleScript was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story. Fortunately there is a handy Atom package that will take care of that for you.I also moved the script and plist into my dotfiles repo and created a symlink for the plist from ~/Library/LaunchAgents to the file in my dotfiles.
0 Comments
Leave a Reply.AuthorCory ArchivesCategories |