Mainly due to the search/filter. This would be especially useful during testing/debugging, when I have all (or most) of the variables in the macro that have a common prefix.
Yeah, I’m still scratching my head as to why anyone would need this macro, since the Variables preference pane is actually better, in my opinion, because not only can you filter, but you can just arrow through the variables to see their values, and change them.
But it was easy to throw together, and as you know, Peter, sometimes users’ logic is inscrutable.
Good thing the Search box was not a snake, because I would have been bit! LOL
For some unknown reason, I just never noticed it at the bottom of the window.
Thanks for pointing this out.
Just to make this real clear for others who may be as blind as I am, here's a screenshot, with a filter in place:
BTW, notice how useful using a prefix for the Variables used in a specific macro is.
So, the most important feature that @DanThomas' macro provides, that is NOT provided by the KM Pref window, is being able to run from anywhere, without having the KM Editor open.
If I was really going to do it up right, here's what I would do:
I'd create a window like the one in Preferences, where you can cursor through the variables and see their values instantly.
I'd also have a search filter, but I'd probably provide regular expressions, and let you save and reload search terms (or perhaps provide a history list, or both).
Additionally, I'd let you "pin" variables so they're visible in spite of what's in the filter.
I'd let you save sets of "pinned" variables, so you can easily pull up a set for any situation you work on regularly.
Of course, you could limit the variables to only those pinned, to reduce the clutter.
I'd come up with some way so that when you had a set of pinned variables, you could click a button and it would store all their values. Then at another point in time, you could click a button and see what variables changed, and compare the results.
I'm sure I could think of other things. Just thinking out loud here.