Jump to content

How to add this command in a "create-from-template" applescript?


Recommended Posts

I've just found an applescript which helps creating a new note by choosing a templete note from the notebook "Template" preset and it works pretty well. However, I'm wondering if anyone knows how to add a command in the script so that the new note can be created directly to a particular notebook (and even with tags preset if possible) ? Thank you! 

The "template-to-new-note" applescript I got is this one: http://blog.nik.me/post/32694120684/evernote-create-new-note-from-template 

 

Link to comment
  • Level 5*
On 2017-09-18 at 7:13 AM, Simon Huang said:

I'm wondering if anyone knows how to add a command in the script so that the new note can be created directly to a particular notebook (and even with tags preset if possible) ?

My new-note script uses an export/import action for templates
So, I use the command        set newNotes to import tempFile to "@Inbox" with tags
or to reassign the notebook, I use the command      move theNote to notebook aaaaaaa

To assign tags, I use the script     assign tag "!Hot Notes" to newNote

My script is documented here

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...