Skip to content

Instantly share code, notes, and snippets.

@benwaldie
Created June 15, 2015 15:10
Show Gist options
  • Save benwaldie/db2a6c55451301709738 to your computer and use it in GitHub Desktop.
Save benwaldie/db2a6c55451301709738 to your computer and use it in GitHub Desktop.
Create and tag note in Evernote
tell application "Evernote"
activate
set theNote to create note with text "ABC"
set tags of theNote to {tag "Tag 1", tag "Tag 2"}
end tell
@DaveHamilton
Copy link

Thanks, Ben! Totally works. I had the tags in a list, so I just had to loop through and make a new list that marks them as "tags" and then it was fine:

repeat with theTag in tagsList
    set tagsListAsTags to tagsListAsTags & {tag theTag}
end repeat
set tags of theNote to tagsListAsTags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment