The Mail app on my desktop Mac has six Viewer Windows on three monitors:
Main (center) monitor: "All Inboxes"
Left monitor: "Red" & "All Sent"
Right monitor: "All Junk" & "All Drafts" & unpredictable name (often "Searching")
Sometimes when my Mac awakens from sleeping, all Viewer Windows have moved to the Main monitor.
I've created a Keyboard Maestro macro that moves the Viewer Windows with predictable names to their proper position. The window I use for random searching presents a problem because its name is unpredictable when I've canceled my last search.
I'm seeking a way to identify the Viewer Window with an unpredictable name. Keyboard Maestro's "Move Window(s)" steps offer several choices other than window titles. "Window index" seems promising if I could determine the index of my "Searching" window.
How can I move a window with an unpredictable title?