get name (copy API Token from menubar “Help” and pastes to XXXXXX)
open location "bear://x-callback-url/open-note?selected=yes&token=XXXXXX&x-success=hook://title-callback/title///"
.
get address (If the system is not in English, please replace the menu name.)
tell application "System Events"
tell process "Bear"
click menu item "Copy Link To Note" of menu "Note" of menu bar 1
end tell
end tell
get the clipboard & "&new_window=yes"