Is there a way to create a macro that grabs all global macros visible in the variables pane and saves that list to the clipboard/variable/file?
I know I can go to the variables pane, select the first and last, and copy, but I was wondering if I can automate that?
The Variables is a collection, so you can do all sorts of stuff with it :).
-rob.
3 Likes
Works like a charm. Awesome!
I sometimes choose that option by accident instead of picking the Lines in Collection, but never explored what it was. I understand it now.
Thanks!
I was trying to filter out some variables, but it doesn't seem to be working.
I think when we use "Matches" or "Does Not Match", it's using RegEx, right?
And the pipe means OR, right?
![image](https://forum.keyboardmaestro.com/uploads/default/original/3X/e/b/eb90c885ad0508c61350b3012ac75f6a6cd97d70.png)
It was working the way you shared, but this one is not.
Am I missing something here?
Ended up using the Search and Replace instead, because I wasn't able to make the IF THEN work. I wonder what the issue is...?
I'm pretty sure I used the pipe in IF THEN before, so I don't know what's going on now.
![image](https://forum.keyboardmaestro.com/uploads/default/original/3X/6/2/622562c185ace98fdfd65ba66d558ea4342ca334.png)
Yea, that should work. A simple two-variable test worked here:
You can see it skipped the first two vars:
![image](https://forum.keyboardmaestro.com/uploads/default/original/3X/6/8/68b8fad9affbd1baa130f4d7515f1a3c2c8b1490.png)
Without seeing your macro in full, hard to say why it didn't work—it should.
-rob.
1 Like
Well, I don't know what happened, but I tried it again and it's working...
Go figure. I moved the macro to a different group and all that.
I guess sometimes KM acts weird. It's not the first time that something isn't working and without making any changes to the macro itself, it starts working. Go figure...
Thanks for testing