Time tracker with KM, AppleScript an Evernote?

David,

The below works for me running Evernote 6.7.1 (453574) on macOS 10.11.4.

I moved most of the log entry creation to a single KM Variable, which is read by the AppleScript. This will allow you to easily adjust the log data and form in the KM macro.

I also completely rewrote the AppleScript to streamline and use more standard coding practices (at least the one's I use). Note, one major change is that ONLY one Note is appended if multiple notes are found. It appends to the first Note found.

Please feel free to ask any questions.
Good luck.

##Macro Library   Timetracker (JMichaelTX)


####DOWNLOAD:
<a class="attachment" href="/uploads/default/original/2X/9/9ae45eb30669c963b6c285b10d3df372335a7621.kmmacros">Timetracker (JMichaelTX).kmmacros</a> (4.3 KB)

---

###ReleaseNotes

* Macro is disabled as uploaded
* The `%TriggerValue%` used in the `TT__Log%` variable is the Title of the new window that triggered the macro.
* You should review script setup to ensure it has the proper settings for your Evernote account
* If multiple Notes are found, only the log is appended ONLY to the first Note.

---

<img src="/uploads/default/original/2X/d/da8d6872fe87eb415ff79946656ac435fc1cad96.png" width="568" height="917">

###Example Results in Evernote Note

<img src="/uploads/default/original/2X/e/e731bc05b4b580480ffa4e019c6d85cc3e1cb9f3.jpg" width="550" height="161">