Earlier quoted context omitted.
I have an idea for rcmd -- if possible, it would be great to be able to assign a right-cmd-key to -- or open one if none is. Likewise for calendar.google.com and probably others. I'd pay an extra few dollars for that feature, as I'm forever opening because my tab hygiene is lacking. I read your piece on window switching -- would AppleScript work? This works: tell application "Safari" tell item 4 of windows set the cu…
Hey that’s a useful feature indeed, and it can already be added by the user with rcmd’s Window Actions which support AppleScript. I actually have done that myself already for Firefox. I could maybe try to implement the main part of the “find and switch to the tab if it exists” so that users can simply assign the URL. Thanks for reminding about this use case!
tell application "Safari"
repeat with w in windows
set mt to (tabs of w whose URL contains "https://mail.google.com/")
if mt ≠ {} then exit repeat
end repeat
if mt ≠ {} then
set mt to item 1 of mt
set the current tab of w to mt
set the index of w to 1
end if
-- activate -- needed if not activated otherwise
end tell
How do I set up window actions in rcmd? I don't see that in the page on your site.