Request:
I’d like an AppleScript that I can run over the OF Inbox to parse the actions I get from Mail Drop. I’m looking for the same parsing as the old mail rule used to handle: projects, contexts, start/end dates, flag, estimated time. (Why am I not using the OF mail rule? I don’t always use Mail.app, often working straight from Gmail in Chrome.)
I looked on the forums and couldn’t find anything helpful/working (there seemed to be one topic, “Process tasks from Mail Drop”, but that didn’t seem go anywhere and I’m not confident in my AppleScript authoring at this point to take it on myself.
Purpose:
In my case, I’m trying to automate as much of the manual work that goes along with managing actions that arise from my calendar, which I use a lot. I have adopted a pattern of creating actions to remind me to (a) prepare and (b) debrief meetings, so that I can ensure I have good discipline around getting things done. With all of these meetings, the sheer work of checking my calendar, adding actions, etc is time-consuming and repetitive, and I be believe that’s better suited for machines to do.
I have some ideas for other similar automation (Zapier/IFTTT listening for triggers from Trello, SalesForce, etc, all converting into OF actions) so a general AppleScript to parse the OF Inbox using the OF Mail Rule syntax would be handy as opposed to a bunch of custom scripts for each individual event/trigger type.
Context:
My work is balanced between my home office and a lot of travel, and despite a lot of collocated work teams and ad hoc sessions, most of the people I work with day-to-day are highly calendar-driven. (I would love if we used stuff like Slack and Hangouts more casually, but that’s not my current reality.)
Current Condition:
I use Zapier to scan my Google calendar for new entries. When it finds a new event, it sends an email to my OmniFocus Mail Drop address to create an action reminding me to prepare for that meeting. Right now, the subject of those emails are simply “Prepare for your meeting’’ on <meeting date/time>'”.
Multiple times per day, I need to go the OF Inbox, read each of the new actions that get added via this approach, set the project (varies, but am thinking of setting it to ‘Meetings to prepare’), update the context (always ‘Thinking:Planning’), set the due date (always the day/time of the meeting), and set an estimate (always ‘5m’).
I have a similar Zapier rule that creates a ‘follow-up’ action within 15 minutes of a meeting starting. This action is due the same day of the meeting, attached to a different project (‘Meetings to debrief’), using a different context (‘Braindead:Hygiene’), and 5m estimate. Again, I have to check the OF Inbox regularly and set all of the properties manually in the current state to make this work.
Target Condition:
Continue to use Zapier to fire off emails, but change the email subject in Zapier of the new meeting trigger to:
“Prepare for your meeting ‘[meeting name]’ on [meeting date/time]’ ::Meetings to prepare #[meeting date/time] $5m”
to get an action of the same name in OF.
With the AppleScript, I’d like it to parse all of the actions in the OF Inbox using the OF mail rule parsing to convert it into an action with properties as follows:
- Name: Prepare for your meeting ‘[meeting name]’ on [meeting date]
- Project: Meetings to prepare
- Due date: [meeting date/time]
- Estimate: 5m
Similarly, I’d like the follow-up trigger to send an email with the subject as follows which parses accordingly:
Handle follow-ups from your meeting ‘[meeting name]’ on [meeting date/time]’ ::Meetings to debrief #[meeting date/time] $5m
The benefit of being applescript is that I could setup an Automator action or something to regularly scan the inbox, so I don’t have to lift a finger.
So, anyone up for helping? Despite being a former programmer, My AppleScript Fu is not the best and I could use some help. I’m sure others would appreciate this hack too while OF Mail Drop does not have this kind of functionality (which I have pinged the support ninjas about already).