How Do I Get the Name of the Notebook of an Evernote Note?

[Moderator Edit:

Writing an Evernote macro: is there an action, triggered from within a note, that would allow me to copy to the clipboard the name of the NOTEBOOK containing that note?]

The macro would be activated from within a note (nothing to do with search notebook function)
Copying the title or body of a note is easy, but I can’t find a way to copy the name of the notebook in which the note is located.
thanks very much for your time and help

This simple AppleScript should do the job, run when the Note of interest is selected in Evernote:

tell application "Evernote"
  set oNote to first item of (get selection)
  set nbName to name of (notebook of oNote)
end tell

return nbName

Just put this script in an Execute an AppleScript action (KM Wiki).

Questions?

BTW, I hope you don't mind I changed the Title of your Topic to be clearer and succinct. This should help readers find your topic easier.

FROM:
Writing an Evernote macro: is there an action, triggered from within a note, that would allow me to copy to the clipboard the name of the NOTEBOOK containing that note?

TO:
How Do I Get the Name of the Notebook of an Evernote Note?

And then I put your original Title into the body of the topic.

1 Like

thank you very much both for the solution and clear and concise title - changing it was an excellent idea.

1 Like