Jump to content
Simon Huang

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 

 

Share this post


Link to post
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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...