I'm trying to test if Zoom is in a meeting, using the condition "Any widow title of application zoom.us contains Zoom Meeting". My goal is to use a repeated "while application is running" trigger to exit zoom automatically when a meeting ends.
This seems to work normally, but if the window is fullscreened, sometimes it works and sometimes it doesn't.
WINDOWCOUNT would also be an option, except it only works on the front application, and I don't want to bring zoom to the front every time I check if a meeting is active.
Once you place a window in full-screen mode the macOS doesn't see it as a window anymore – it's seen as a space. Apple doesn't provide a public API for spaces, so Peter's ability to work with them is very limited.