"Pause Until" gives unpredictable results

Hello,

I have a macro that opens a dev environment that contains multiple windows. The end of the macro contains a "pause until" waiting for two certain windows to be done executing, before KM will trigger an Apple Script to use Moom to place the windows in the correct position. The macro is executed from a trigger file.

The Pause Until function doesn't work as expected. Although the conditions are evaluated as true, it never executes the actions after. I first throught it was Moom that was the issue, but it's not. It works when removing "Pause Until" and when adding an "alert" action, it will not execute either.

Any ideas why? Attaching the problematic part of the macro.

All the best,
Andreas

And are those windows in a Space (as per your other post)?

Spaces are, in general, a PITA when it comes to scripting and automation -- Apple simply hasn't made query/control Public APIs available. Searching the Forum for threads about Spaces may give you some ideas but, in the meantime, try running a macro that only reports the names of Terminal and Audacity windows -- it may be that the Editor's (presumably in the same space as the windows) evaluation differs from the macro's for some reason.