A macro for Bike
Focus in selection row in new window.kmmacros (3.2 KB)
Good idea – do you find that the focus is opened in the new window, on your system ?
( Here FWIW – macOS 11.7, KM and script versions – a new window is certainly being created, but the the focus is still opened in the old one )
I guess another approach might be to create a new tab for the focus ?
A possible sketch here:
Yes, it's works well here. <macOS 12.6, Bike 1.5(87)>
It seems that on some systems it may need a brief delay
statement – just to make sure that front document
is already bound to the document object of the new window.
e.g.
tell application "Bike"
activate
set bikeurl to URL of selection row of front document
tell application "System Events"
tell process "Bike" to click menu item ¬
"New Window" of menu "File" of menu bar 1
end tell
delay 0.1
tell front document to open location bikeurl
end tell
Update
Speed improvement. Removed the AppleScript part and used pure KM operation instead.
Focus in new window.kmmacros (3.9 KB)
Update
With the Bike v1.9 update, the previous macro is not working anymore.
Please change second action (Select Menu Item in Bike) to this:
Window ⇢ Duplicate Tab to New Window
or just download the new macro:
Focus in new window 1.1.kmmacros (5.1 KB)