Here’s a UI scripted version of integration with Evernote 10. It’s the get address script.
set the clipboard to ""
tell application "System Events" to tell process "EverNote"
repeat 50 times -- poll clipboard for ~2.5 seconds
key code 8 using {control down, option down, command down}
delay 0.05
try
if (the clipboard) is not equal to "" then
exit repeat
end if
end try
delay 0.05
end repeat
end tell
set myUrl to the clipboard
set myTitle to ""
if myUrl is not missing value and length of myUrl is not 0 then
tell application "Hook"
try
set aBookmark to bookmark id myUrl
if aBookmark is not missing value then
set myTitle to name of aBookmark
end if
end try
if length of myTitle is 0 then
repeat until length of myTitle is not 0
set myName to display dialog "What is the title of the note?" default answer ""
set myTitle to text returned of myName
end repeat
end if
return "[" & myTitle & "](" & myUrl & ")"
end tell
end if
If anyone tries it , please let us know and we might include it in Hook.
NB: there’s we don’t see a reliable way yet to get the title of a note, nor Hook to New
. But you can rename links in Hook. (And it could be that with some elbow grease one could get the title.)
So Evernote users should think long and hard before downgrading to Evernote 10.
Hopefully Evernote will learn from Obsidian and other developers that it is easy to write a wrapper around an electron app to deliver automation to Mac users.
Having said that, as was the case before Evernote 10, in my humble opinion, DEVONthink is preferable to Evernote for most Mac users because, well DEVONthink is committed to macOS and has several major distinctive advantages.