I am trying to put together a macro that would allow me to have a hotkey combination perform a different action depending on whether or not a specific window is in the foreground and has focus.
The problem is that the window i am checking for, Optimal Layout, which is a window manager doesnt appear in the menu bar when it has focus. ie It seems to be a hidden window.
Is there any way for me to check whether or not that apps “window” is at the fg and currently has focus? I ran into a similar issue when trying to detect whether or not the Quicksilver window is currently active.