Action

1日1ノートに追記

Posted by sorashima, Last update over 4 years ago

Evernoteに1日1ノートになるよう、ノート名を「年-月-日(曜日)」の書式、タグを「月/日」の書式で、マークダウンで入力されたドラフトに時刻を付加して追記します。

Steps

  • script

    let mmd = MultiMarkdown.create();
    mmd.format = "html";
    draft.setTemplateTag('honbun', mmd.render(draft.content));
    
    let now = new Date();
    let jday = ('月火水木金土日').substr(strftime(now, '%u')-1, 1);
    draft.setTemplateTag('JST',strftime(now, `%F(${jday})`));
    draft.setTemplateTag('tagJST', strftime(now, '%m/%d'));
    
  • evernote

    nameTemplate
    [[JST]]
    notebookTemplate
    Journal
    tagTemplate
    [[tagJST]]
    template
    [[created|%H:%M]]
    [[honbun]]
    format
    enml
    writeType
    append

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.