Wild card requests Macro (v11.0.3)
Wild card requests copy.kmmacros (5.4 KB)
When I run this macro, it asks for the gender but regardless of what I select,, it shows me the list of women's names. it then provides the tournaments list but then doesn't print the text.
Welcome to the forums!
There was one main issue with your macro, and that was the use of a non-existent token, %PromptWithList(Variable)%
. As a result, your first condition was never true, so you always got the women's names.
There is a %PromptWithListText%
token, which returns the text selected by the user. But as you're setting a variable anyway, just check that; here's a version that works:
Wild card requests copy - modified.kmmacros (34 KB)
I also changed the variables from globals (whose values persist indefinitely) to locals (which vanish at the end of each run). Generally speaking, you should prefer locals or instance variables to globals, as neither persists once the macro finishes. The wiki page on variables goes into the uses for each variable type in some detail.
Hope that helps;
-rob.
3 Likes
Really great revision. Thank you. It still won't print the text though. I've run the trigger in Outlook and Notes on a MBP. Anything obvious to solve that issue?
2 Likes
Oh, sorry, I didn't even look at the end. You're just setting a variable in the last step; I saw it and just assumed it was a Display Text box. So either switch it to Display Text, or if you want to set a variable (suggest making it local, too), then do that and add a Display Text action to display %Variable%local_Wild card requests%
.
-rob.
1 Like