Action
Meeting Finish
Posted by jayelevy,
Last update
almost 7 years ago
- Unlisted
Steps
-
script
// process draft prior to move to Evernote // * find lines maked as action items // * highlight in red font // * add action item to summary section at end of draft // * add action item to Reminders // update with name of Reminders list to use const reminderList = "Work"; // format text string (meeting title - YYYYMMDD) for use as note in the reminder const reminderNote = draft.title + " - " + draft.createdAt.toISOString().slice(0,10).replace(/-/g,""); const lines = draft.content.split("\n"); let begin = ''; let end = ''; // find any lines marked as an action item // lines end with 2 spaces for markdown line break when sending to Evernote for (var line of lines) { let check = line.includes("☐"); if (check) { let cleanToDo = line.replace("☐ ", ""); // add Evernote formated to-do box and copy action item to end of note end += "<en-todo checked=\"false\" />" + cleanToDo + " \n"; // change font color to red to highlight action item inline in Evernote note begin += "<span style=\"color:red;\">" + cleanToDo + "</span> \n"; // add action item to Reminders let list = ReminderList.findOrCreate(reminderList); let reminder = list.createReminder(); reminder.title = "Meeting: " + cleanToDo; reminder.notes = reminderNote; reminder.update(); } else { begin += line + " \n"; } } // the following is a kludge to workaround malformed title line // added the first line to be the properly formed title line (text followed immediately by \n) // the Evernote action uses the [[body]] tag so the first line of the draft is skipped // begin = draft.title + "\n" + begin.slice(0,-1); end = end.slice(0,-1); draft.content = (begin + " \n" + end); draft.update();
-
evernote
nameTemplate Meeting: [[title]]
notebookTemplate . Working
tagTemplate [[tags]]
template [[body]]
format markdown
writeType create
Options
-
After Success Trash Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.