nikivi
April 11, 2019, 10:48am
1
I use a KM macro called Test
to prototype my macros before I go on & create them.
I want to solve the issue of making the final macro ready for use when I am happy with how my Test
macro looks.
Is it possible to go from this state in KM.
To this:
With all actions transferred & with focus on the name so I can fill it in.
Additionally it would be awesome if the Test
macro would be cleared from the actions so it is empty.
Would be super grateful for such macro.
I have a similar need, but use a different approach for solving it.
Create a new Macro in the proper Macro Group, but append "@TEST " to the Macro name
I have a Smart Macro Group whose criteria is "@TEST " in the Macro name.
When finished testing, all I have to do is remove "@TEST " from the Name
I suppose you could write a Macro that does this, but it doesn't seem worth it to me.
nikivi
April 11, 2019, 7:44pm
3
Unfortunately your approach won't work for me.
I want to use my one Test macro way as I have a macro to instantly go to the Test
macro so I can start instantly editing it:
And a way to run the macro instantly with Karabiner for rapid prototyping.
Only missing piece is the above translation of Test
macro to a new global macro.
You could do it with AppleScript, but this sequence works and is easily automatable:
View ➤ Select Macro Column
Edit ➤ Duplicate
(title is automatically selected)
Delete
To remove all actions from an existing fixed macro, an AppleScript is the easiest solution:
tell application "Keyboard Maestro"
delete every action of macro id "155F59EA-A4AD-4439-853A-61084ED33E9F"
end tell
1 Like
peternlewis:
To remove all actions from an existing fixed macro, an AppleScript is the easiest solution:
tell application "Keyboard Maestro"
delete every action of macro id "155F59EA-A4AD-4439-853A-61084ED33E9F"
end tell
This will do the job, but, ==IMO, is highly risky. It could lead to deletion of all actions of a macro that you were not able to copy for some reason.== Then, there is no easy recovery, especially if you just made changes, that would not be in the "Revert Macros" option.
I would not use this procedure, but if I did, before I deleted all of the actions, I would save/export the macro to file. You could use this macro to do that:
MACRO: Export (Save) Selected Macro
JMichaelTX:
Then, there is no easy recovery, especially if you just made changes, that would not be in the "Revert Macros" option.
Undo will undo this change.
But Undo will not work once you have quit the KM Editor.
nikivi
April 13, 2019, 4:07pm
8
True. But fortunately I never quit the editor
nikivi
April 13, 2019, 5:57pm
9
Thanks @peternlewis . It works wonderfully well!