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?
twitter.com
oh and this is activated
above works though, not sure why if directly doesn't
if
It's because FrontBrowserURL is a token, not a variable. Change the If/Then setup to this, and it should work:
FrontBrowserURL
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.
For more information, see the wiki Searching the Forum for Answers section.