I use the following macro to cycle through open preview windows:
However, if a Preview window is minimized in the dock, this macro doesn't work because the macro tries to open the minimized window.
Is there a way around this (i.e. to exclude minimized windows from the window count)? I do not want the minimized window to open, I just want to cycle through the currently open windows.