Provide a KM tool/menu item that would search a macro plist or sync file, allow the user to select found macro(s), and then import the selected macro(s) into the current set of macros, maybe into a “Restored” Group.
P.S. @peternlewis, this was requested in another topic, but here is a great example / use case of why we need to have multiple windows for the actions in a Macro. I needed to compare my current macro with the prior version to identify changes I needed to make.
A macro is like a document to many other apps. And all of the apps I know of that use documents support displaying multiple documents in multiple windows.
Addressing your immediate issue of getting a macro restored and ignoring the broader issues you brought up which are for @peternlewis to address, my method is like yours but I think simpler. Let’s say Today you want to restore a macro from Yesterday.
In the KM Editor, I’d use File > Revert Macros > Yesterday to restore where I was Yesterday. I’d export the macro in question, use File > Revert Macros > Today to get back to where I was earlier Today, then go to the Finder to double-click on the exported macro to get back the macro in question. Of course, you’d then need to do any cleanup of the copies of that macro since you’d have Today and Yesterday copies.
The Revert Macros command in the File menu lets you revert to a previous version of your macros. If you find you have really messed up your macros, you can revert to how they were when you first launched Keyboard Maestro, or how they were yesterday or even several days ago.
So, to be clear, AFTER I do a revert to prior date, the menu will show "Revert Macros > Today"?
And, by today, does it mean the version just prior to the last revert? @peternlewis, can you please confirm?
That’s an understandable concern I hadn’t considered or ever faced, whether your second time reverting would bring you to where you were earlier Today. That makes me wonder if it would be both worthwhile and feasible for there to be something like a File > Backup Macro File Now option for situations like this when the user would like an opportunity to save the macros where they are at a specific moment. (That’s not to say that should be done instead of the feature request in your original post as each idea is a distinct functionality.)
Firstly, before doing this, I would generally quit and relaunch the Keyboard Maestro editor, because one of the revert options is always Revert to at Editor Launch.
After reverting, a new option is added for “Revert to Before Last Revert”. So it is safe to Revert, export, and then Revert to Before Last Revert.
However, as said, for added safety, relaunch the Keyboard Maestro editor first, otherwise if you accidentally choose the wrong entry when you go to select “Revert to Before Last Revert” you could lose your original macros, leaving you forced to choose between At Editor Launch and yesterday’s, whichever is later.