I regularly manage my work and non-work web browsing in Safari by using two windows. All work related sites are in tabs in window 1, and all non-work sites are in tabs in Window 2. I rapidly switch between the two windows using the native Mac keyboard shortcut of ⌘-`.
I use the Activate a Specific Application action to toggle the visibility of Safari throughout my day. The macro, for your reference:
Previously (at least prior to Sonoma, and prior to Keyboard Maestro 11), the above workflow worked flawlessly, through hundreds of daily uses.
Now, with Sonoma and Keyboard Maestro 11 (also reproducible in 11.0.1), I've found an odd issue with the Activate a Specific Application action when used multiple times (sometimes it takes six or more uses, but it eventually happens). The issue causes the loss of window cycling functionality when using the native Mac keyboard shortcut (meaning that ⌘-` does nothing).
How to reproduce this:
- Open two windows in Safari (I've also been able to reproduce this in Apple Mail).
- Trigger my Activate a Specific Application macro (as seen in the above screenshot). Do this a number of times (I can reproduce the issue after six, seven, eight or nine triggers, on average).
- Try to switch or cycle through Safari's windows, using ⌘-`.
- Notice that the windows do not cycle.
After this issue occurs, I am able to get ⌘-` to cycle again, if I use Mission Control, or if I select the non-active window in the Window menu of Safari.
I hope that the above helps you track down and fix the issue (as the intermittent absence of the ⌘-` functionality is frustrating me to no end).
@peternlewis — may I bother you to look at this issue?