Action

DEVONthink/Reminders/Mail

Posted by leebutler, Last update 6 months ago

Modified another Drafts action named Evernote/Omnifocus/Mail discussed after the break.

  1. Add entire Drafts text as markdown to DEVONthink in the Global Inbox
  2. Items starting with “- “ are added to Reminders list specified in the variable listname
  3. A new Mail is opened with the meeting notes

You can change the x-devonthink URI text ‘createmarkdown’ to ‘createtext’ to get a text document rather than a markdown document in DEVONthink.


This action takes meeting notes in the draft and performs three actions in them.

  1. The meeting notes are saved to my Evernote.
  2. Lines that start with @ are stripped out and added as individual tasks to my OmniFocus database.
  3. An email message, with the draft as the body of the message, is set up, ready to be addressed to the others in attendance.

Note. I stole this action and adapted it for my own purpose. See original description below for details and for credit to @jmvfr for creating the OmniFocus part of this workflow.

Dealing with meeting notes

This action step puts your notes into your daily journal at the same time as placing all actions in that meeting into Omnifocus. Tasks are marked by using a line with ‘@’ at first character. It does this via a list in Reminders (I use the Focus list because focus is easy for Siri to understand) and “:” as note delimiter for each task.

Props to @jmvfr for the task to Omnifocus part of this - I’ve simply put it together with my current workflow for Evernote.

Steps

  • callbackUrl

    template
    x-devonthink://createmarkdown?title=[[title]]&location=''&text=[[draft]]
    waitForResponse
    false
    encodeTags
    true
  • script

    // Send each task to Reminders
    // A task is a line with a '-' and a space at the beginning
     
    var listname = "Inbox"
    
    var lines = draft.content.split('\n');
     
    var list = ReminderList.findOrCreate(listname);
    
    for(var ix in lines) {
    	ltmp = new String(lines[ix]);
    	if(ltmp.charAt(0)=='-') {
    		var task = list.createReminder();
    		task.title = ltmp.substr(2);
    		task.update();
    	}
    }
    
  • mail

    toRecipients
    ccRecipients
    bccRecipients
    subjectTemplate
    [[title]]
    bodyTemplate
    [[body]]
    sendAsHTML
    false
    sendInBackground
    false

Options

  • After Success Default
    Notification Info
    Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.