I've been trying and failing to come up with a more efficient way of editing the last run macro then going to the editor and sorting through macros by date used, but this workaround I've arrived at in the meantime seems useful enough to be worth sharing now. Using KM8's Trigger Macro by Name action's new ability to accept parameters, you can now easily tweak any macro by "searching" for it in Trigger Macro by Name once, then accessing it again through the same hotkey or other trigger you have assigned to Trigger Macro by Name. Since Trigger Macro by Name, like KM's other built-in search bars, now keeps your last input in memory, tweaking a given macro is now as quick and easy as invoking the TMbN trigger and hitting Enter.
For convenience, I've also made a very simple companion macro that pre-fills the TMbN search field, so you can just tap the right arrow key (because the search field input is initially selected, so typing immediately will overwrite the pre-filled contents) and start typing the name of the macro you'd like to edit.
(I tried to automate the right arrow key tapping as well, but was unable to get that to work)
The major downsides to this system is that it cannot distinguish between macros with the same name, and that macro names must be entered in full for it to work. Obviously this is not ideal, but hopefully this workaround will prove useful to others who also go back and forth tweaking certain macros, as it's the fastest method I've found to do so thus far.
That is definitely a great and useful shortcut, but unfortunately it isnât sufficient for my use case. Its primary drawbacks for me are that:
You have to be in the editor to invoke it, which is admittedly not a big deal but still a step removed when Iâm tweaking a macro designed for use in other apps. By contrast, this macro can be invoked from anywhere, since I placed it in the Global Macro group
It only selects the macro, and doesnât automatically put it into an editable state
The macro I want to tweak may not always be the one last used or last edited, or even previously edited, and it isnât always clear before invoking the editorâs built-in shortcuts which one itâs going to select. With the method Iâve devised here, itâs always clear which macro Iâm going to edit
Admittedly these are far from big problems in the large scheme of things, but isnât shaving off finicky points of friction what automation is all about?
Thanks for sharing that macro, and that fact about the KM Engine log file! I must have missed it when I searched the forum for precedent. However, I did come across other macros, including @DanThomasâs great âGet Recently Run Macrosâ macro, and tried creating my own that made use of the JavaScript he used to get the list (on a side note, @DanThomas, if youâre reading this, I hope you decide to swing by the forum again sometime; I would love to see what you come up with using KM8âs new scriptability). It worked, but the problem was that, at least with my macros, which include some that activate automatically when switching apps etc., I could never be certain that the most recently run macro, or even the second or third last run macro, would consistently be the particular macro I wanted to edit. As I said above, with this workaround, I always know which macro Iâll be editing, so itâs turning out to be the superior solution (again, at least for me).
Of course, this is all just a holdover until @peternlewis implements read-your-mind triggers for KM10 and we no longer have to tell our Macs what we want to do manually
I have come across that macro before, yes, though admittedly not while researching this one, but had never installed it before. Dan's macro is, unsurprisingly, very elegant and capable, and being able to actually search for the macro you want to edit, complete with filtered results, is great, but since you have to search from scratch every time you invoke it, it still doesn't scratch my particular itch quite as well as my own hack, which saves the current search and thus lets you get back to any given macro with a single hotkey followed by Enter.
I do make use of this search function sometimes (though I often forget about those qualifiers, so thanks for the reminder!) but as I said above, like with the built-in shortcuts for the last used and edited macros inside the editor, the downside is that you have to already have the editor as your frontmost application, which is a step removed when editing a macro for use in different applications. Clearly all these different options have their own trade-offs and advantages, so it's great that we have so many to choose from!
FYI, I do read messages Iâm tagged in. I get emails for them, so Iâm keeping somewhat of an eye here.
Unfortunately, getting my YouTube channel âThe Newbie Woodworkerâ going is proving to be more of a challenge than I thought it would. So I probably wonât be able to dive into KM8 for a while.
But rest assured, I havenât forgotten about all you guys (and gals). And I appreciate it when people say nice things about me and the work Iâve done. It helps - especially when I have to re-shoot the same scene 10 times to get what I want, and even then⊠but I digress.
LOL. I know youâre joking, but the script is part of the problem. I canât memorize anything to save my life! I have one clip where I took literally 15 minutes to say 30 seconds worth of words.
Needless to say, I use voiceovers wherever possible.
[quote=âDanThomas, post:10, topic:8043â]
but the script is part of the problem. I canât memorize anything to save my life! I have one clip where I took literally 15 minutes to say 30 seconds worth of words.[/quote]
Please post an example video that shows how exactly the script is failing!
There is a reason I used an automated voice for my v8 videos. Man, if you think people donât like you stumbling over a word here and there, they really donât like automated voices