Find Default Notebook in Evernote

Description

This simple handler will return the name of your default Evernote notebook. Useful for avoiding errors caused by sending an empty value for the notebook name via AppleScript.

The Code

--DEFAULT NOTEBOOK FINDER
on Default_Notebook()
    tell application "Evernote"
        set EVnotebook to name of (every notebook whose default is true)
    end tell
end Default_Notebook