Is it possible to limit the search scope of a Trigger Macro by Name action to a Smart Group?
I know that you can set the initial search to, for example, ap: to filter by app-specific macros. The trouble is, unless you remember to hit โ when the prompt appears, typing will overwrite that term, and your search will include global macros too.
I noticed that too. I trigger the KM shortcut via another app and add โ in that macro. This way I can start typing directly. In my case this app is BTT. But I'm sure there are other free app that can do this. Maybe Automator? Or Alfred?
Is "#Home Automation" actually a Smart Group, rather than a normal Macro Group? Because I've never been able to get the macros in a Smart Group using AS, and the dictionary suggests it shouldn't be possible:
macro group n : A macro group.
elements
contains macros; contained by application.
...versus:
smart group n : A smart group.
elements
contained by application.
I'm not by my machine at the moment, so I can't check if @kcwhat's suggestion bears fruit. @Frankb's suggestion would work, but if I can find a way to avoid having extraneous text in the search field (ap:, for example), that would be preferable.
Oh darn. I simply used it on a regular group and not a smart group. I stand corrected @Nige_S. I think I carried the thought over from the other thread. Sorry for the mishap.
The only way to filter by application/global availability is to have ap: or gl: in the search field. This seems a little inelegant to me, but not the end of the world. The ideal scenario would be to be able to select Smart Groups, as you can any other groups, but evidently it's not an option. So, what I should have said in my last comment was:
Ah, I see, you would prefer nothing to be there. But if there is nothing there, the search can't be narrowed. There are problems for which there is no ideal solution, unfortunately
Also, it's easier than dragging, just add anything, and then select from the resulting popup menu and the option to select the Smart Group is now available in the menu.
I would guess either the text is still in the Initial search field (maybe hidden by a newline or something?), or you are confused about the action you are running?
It wont be getting the "ap:" from the smart group, so the fact that it is getting it means it is still in the action that is being run.