How to pause until title of front window changes

my question concerns opening a document in Scrivener but could apply to any app in which one opens a document.

I would like to pause until a new document is opened, meaning that the front window name would change, but I don't see this option. There must be something obvious that I am missing.

thanks very much


Before the conditional pause, log the front window title as a variable. The pause should then wait until the front window title is not that variable.


thanks very much @noisneil !!

1 Like