Get Link to latest Evernote Entry in a Specific Notebook?

Hi! I'm looking to grab a link to the latest entry to an Evernote note create a specific notebook, and then attach that link to a calendar entry in BusyCal.
The first part is definitely the most challenging. Anyone have any ideas?

Should be easy enough. Use AppleScript to read the HTML body of the Note, and then RegEx to extract the required info.

However, I'm not sure what you mean by "link to latest entry". These is no such link within a Note. Or do you mean a URL in the Note?

If you want more detailed help, then we would need a complete workflow example, using real-world data.

Hey, thanks for the reply, and sorry I wasn't more clear!
The link I'm looking to get is not a link within a note, but a link TO the note. Like, a clickable link that could take me right to that note in Evernote.
I know that if you right click on a note in Evernote, there is an option to "copy note link". What I'd like to do is use KM, AppleScript, or some combination of the two to get that link for the most recently updated note within a specific notebook within Evernote.
Does that make more sense?


Yes, that makes a lot more sense, and is very easy to do.
Here's a script that gives you the Note Classic link of the selected Note.
That should get you started.

AppleScript -- Get Basic Evernote Note Properties

tell application "Evernote"
  set noteList to selection
  ### OR ###
  #  set noteList to (find notes "notebook:Notebook to Get") -- Same as Search Box in UI
  set oNote to item 1 of noteList
  tell oNote
    set noteTitle to title
    set noteCDate to creation date
    set noteMDate to modification date
    set noteClassicLink to note link
    set nbName to name of notebook of oNote # shouldn't need "of oNote", but you do
  end tell
end tell -- Evernote

Of course there are a number of other properties. Just look at the EN scripting dictionary (Sdef).

amazing!!! Thanks so much

Here's a script/macro that will set the clipboard to a RTF hyperlink of the selected Evernote Note. Then all you have to do is paste into BusyCal, or whatever app you like.

MACRO:   LINK - C -- Copy CLASSIC Link as Hyperlink @EN

~~~ VER: 1.0    2018-06-07 ~~~


LINK - C -- Copy CLASSIC Link as Hyperlink @EN.kmmacros (6.9 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.



Very cool! Thank you so much. I'll take a look at this first thing tomorrow. Can't wait to dive in.