I set the For Each action to iterate through the running applications, however the iterator variable won't register the specific applications I'm targeting that are running. I used the is and contains operators, however the condition is still false. The Wiki entry for the Running Applications collection says it stores paths to foreground applications but the wording is too ambiguous to figure out (1) whether those are POSIX, HFS or URLpaths (2) whether "foreground" describes active apps, or running apps with a visible layer.
I tried inserting in vain the names of other applications.