Hi Team,
Hope you are doing well!
I attempted to create an AppleScript for the Canto notes app (which is a really wonderful app for note-taking, with an amazing developer - check it out at lonelyduck.io), and Hookmark recognizes it - hope this helps someone!
In case there are any errors, please let me know!
use AppleScript version "2.4"
use scripting additions
set callbackURL to "hook://x-callback-url/setCurrentNode%3FrequestID%3D$requestID%26urlKey%3Durl%26titleKey%3Dtitle"
set callbackURLError to "hook://x-callback-url/setCurrentNodeError"
set askURL to "canto://x-callback-url/get-current?x-success=" & callbackURL & "&x-error=" & callbackURLError & "&x-source=Hookmark"
try
do shell script "open " & quoted form of askURL
on error
set the clipboard to ""
tell application "System Events"
if not (exists process "Canto") then return ""
tell process "Canto"
keystroke "c" using {option down, shift down, command down}
end tell
end tell
return (the clipboard as text)
end try
return "hook://x-callback-url/setCurrentNode"
Cheers!