You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use AppleScript version "2.4" -- Yosemite (10.10) or lateruse scripting additions### SCRIPT SETUP ###-- Change the next 2 variables as neededset nbName to "Journal" -- Evernote Notebookset titleStr to "TimeLog" -- Evernote Note Title--- GET LOG ENTRY FROM Keyboard Maestro VARIABLE ---tell application "Keyboard Maestro Engine" to ¬ set logStr to getvariable "TT__Log"--- CONVERT TO HTML TO HAVE PROPER LINE SPACING ---set logHTML to "<div>" & logStr & "</div>"tell application "印象笔记" set noteList to find notes "notebook:\"" & nbName & "\" intitle:\"" & titleStr & "\"" if ((count of noteList) > 0) then --- APPEND LOG ENTRY --- set oNote to item 1 of noteList append oNote html logHTML else --- CREATE NEW NOTE WITH LOG ENTRY --- create note with html logHTML title titleStr notebook nbName end if synchronizeend tell