Why Does This Macro Keep Looping?

Hi,
I made a shortcut to create a new DT3 note within the right DT3 database.
Although the window title I'm looking for is reached, the Until keeps looping...
What am I missing here?

Here the in between Notifications, showing that the title I"m looking – Notes – for is actually reached.

Next the macro.

Launch DEVONthink with new note.kmmacros (5.9 KB)

A screenshot of the super simple While statement.

Find out whether the macro is being triggered multiple times by looking in the Engine.log file (Help ➤ Open Logs Folder).

You may also have multiple instances of the macro running at the same time.

Also, follow the variable myFrontWindowsName. Actually, that is your bug - in the condition, you reference:

myFrontWindowsName

but in the Set Variable action, you reference

myFrontWindowName

so the myFrontWindowsName variable never changes.

Aaaaahhhhhhh.