Drafts Action Directory

Evernote as Todos

Posted by agiletortoise, Last updated: 2018-07-04 13:27:01 UTC

Upload the draft to Evernote, using the first line as the note name, and converting any [ ] and [x] drafts task marks to Evernote checkboxes.

Install

Steps

  • script

    // convert draft to HTML
    var md = MultiMarkdown.create();
    md.noMetadata = true;
    var html = md.render(draft.content);
    
    // replace tasks
    html = html.replace(/\[x\]/g, "<en-todo checked=\"true\"/>");
    html = html.replace(/\[ \]/g, "<en-todo/>");
    
    draft.setTemplateTag("enml", html);
  • evernote

    nameTemplate
    [[title]]
    notebookTemplate
    tagTemplate
    template
    [[enml]]
    format
    enml
    writeType
    create

Options

  • After Success Default
    Notification Info
    Log Level Info

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.