Hook has recently stopped working for me in Orion. When invoked, it seems to give the link from the window which is numerically first instead of frontmost. The app Timing has the same problem. Both rely on something like the below AppleScript -- which isn't working as expected.
Steps to reproduce:
Close all open windows in Orion, then open two nameless windows, e.g. Window 1 and Window 2. Navigate to different websites in each window. Click on Window 2, to make it frontmost. Then invoke Hook, or equivalently run the following in Script Editor:
tell application "Orion"
set w to front window
set t to current tab of w
set cn to name of t
set cu to URL of t
return "[" & cn & "](" & cu & ")"
This should return a markdown link to the website in the frontmost window, Window 2. Instead (on my Mac), it returns the link of the open tab in Window 1.
Orion, OS version; hardware type:
Version 0.99.122-beta (WebKit 6220.127.116.11)
M1 MacBook Pro, 13.2