If variable condition doesn't work with `FrontBrowserURL` but it should

I try run this macro:

It fails even though if I run this on same macro:

And with Safari Tech Preview open on twitter.com URL, I get notification:

twitter.com is part of the URL, yet the if check doesn't run. Maybe I can't use this variable in if check like this?

oh and this is activated

above works though, not sure why if directly doesn't

It's because FrontBrowserURL is a token, not a variable. Change the If/Then setup to this, and it should work:

Tokens are text strings, not variables. I know this now only because I muddled through the same issue—oh so many times—in my own macros when I started working with Keyboard Maestro :).

-rob.

1 Like