Hello, an AppleScript that I used pre-Monterey appears to be throwing an error now. Basically, asking Hook to get the URL of an item seems to fail fairly regularly, especially the first time. Once it works, it then works consistently, but the first run it will say
Hook got an error: Can’t get bookmark id "https://www.google.com/?client=safari"
(in the case where I’m trying to Hook google.com in Safari).
Have others encountered this? Script below.
tell application "Hook"
set book to bookmark from active window
set clip to address of book
end tell