I am looking for something that will trigger whenever a task is completed. Check for criteria outlined below and act accordingly. Just not sure where to start within OmniFocus. Any help would be greatly appreciated…
In the notes section of many of my tasks (not all) there are two hyperlinks; “Mail” & “PDF”
Since the majority of these types of tasks originate due to an email that I have either received or sent I place the actual text from the body of the email that I want to follow up on within the note section of the task. Following that text are the two links, outlined above, that are placed at the end of the note section within the task.
I use email text for quick reference while in OmniFocus. If I am ready to follow up I will then use the “Mail" link below the text to pull up that specific email and send a response. The “Mail” link is a deep link to an email within the default MacOS mail application which allows it me to pull it up on MacOS or iOS which is nice since I travel quite a bit.
The same is true for the PDF link. It is just a PDF version of the same email. I realize it is redundant but that’s just me…
I have been using this system for quite sometime and it works great for me. However I would like to add a step to OmniFocus that will clean up these links when I complete one of these tasks so that I do not have to do it manually. I realize that it does not actually NEED to be done but for me it does so I can sleep at night, again that’s just me…
When I complete a task and if that task contains a “Mail” or a “PDF” link I would like an AppleScript, Keyboard Maestro Macro, or a OmniFocus plugin that would pull up those links and do two things, one for each link;
Move the associated email to the trash, delete it (it currently resides in a “OmniFocus” folder within the mail app)
Move the PDF version of the email to another archive folder on my computer.