Hook Integration scripts for german language Support in Bear

These Integration scripts are intend to allow Hook to operate with the German language version of Bear.

Get Name

tell application "System Events" to tell process "Bear"
    click menu item "Identifikator der Notiz kopieren" of menu 1 of menu bar item "Notiz" of menu bar 1
    delay 0.05
end tell
open location "bear://x-callback-url/open-note?id=" & (the clipboard) & "&x-success=hook://title-callback/title///"

Get Address

tell application "System Events" to tell process "Bear"
	click menu item "Link zu Notiz kopieren" of menu 1 of menu bar item "Notiz" of menu bar 1
	delay 0.05
end tell
get the clipboard

Open Item

Can stay as it is.

1 Like

Thank you for sharing @Heikau ! and welcome to the Hook productivity forum!