Unless you continuously monitor window title changes, thereās no really good way to completely automate this ā and I find that sort of monitoring to be too intrusive (usually).
It ought not to be too hard to make macros to keep ābookmarksā of tabs though.
You could āmarkā a tab, āmarkā another tab, and then move between them.
You could add more than two.
Youād also need a āClear Marksā macro.
See my Safari Ā» Switch Tabs-Windows macro for a few ideas on how to activate the tabs/windows.
Hey there! I just saw this post, I know itās a little dated but this macro I made a while ago addresses your question I believe. While it does use title change triggers to monitor the tab index changes, Iāve used it for at least a year or so and has worked like a champ and hasnāt interfered with any other macros/functionality yet, hope you dig it as well!
Kevinās macro is working out great, and has saved me many hours of design and development time. I have made some mods to expand its scope and fit my needs. If you are interested, you can follow this at my post here.