Action

Evernote as Todos

Posted by agiletortoise, Last update almost 6 years ago

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

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.