KM8 [Possible Bug Report?] Using the Variables Collection in For Each

,
get name of variable NameVariable

Will just return NameVariable.

And the first Execute AppleScript is equivalent to:

Assuming you are trying to list the values of the variables.

The second one fails because you are testing the variable "is 1", so that will list all the variables whose name is "1" (which is nothing, ever, since that is not a valid variable name).

Try something like this:

Keyboard Maestro Actions.kmactions (3.5 KB)

1 Like