Currently on Bear,
I can get rich-link by “context window→copy link”, but not by shortcut.
“Copy Link” and “Copy Markdown Link” not working either.
I get link like
[bear://x-callback-url/open-note?id=XXX](bear://x-callback-url/open-note?id=XXX)
not like
[note name](bear://x-callback-url/open-note?id=XXX)
So I guess maybe the “Get Name” code not working, does anyone know what the problem is?
tell application "System Events" to tell process "Bear"
click menu item "Copy Note's Identifier" of menu 1 of menu bar item "Note" of menu bar 1
delay 0.05
repeat 50 times -- poll clipboard for ~2.5 seconds
try
if (the clipboard) is not equal to "" then
exit repeat
end if
end try
delay 0.05
end repeat
end tell
open location "bear://x-callback-url/open-note?id=" & (the clipboard) & "&x-success=hook://title-callback/title///"
Version
Bear: 1.9.3 (9023)
Hook: 3.4.1 (4604; Integration v. 191)
macOS 12.1 (21C52)