Macro only works when 2 versions of it are in KM Editor!

Hey and good day,
After a good while I realized that my KM macro stopped working, the moment I had deleted the other test versions of it. Strange, isn't it?

So everything is fine as long as there are 2 versions, see pic (item5 and 6):

Screenshot 2025-07-11 at 22.54.11

I could not upload the macro for some unknown reason, so here is the pic:

ALSO a question:
Although the macro does work, maybe there is a simpler way for the steps:

  • ⌘ Up Arrow
  • Pause
  • ⌘ A
  • Pause
    ?

/
best regards,
OmarKN

Are the macros all in the same macro group? If not, are the macro groups available to the same set of applications?

Check the Keyboard Maestro Engine log file to check which macros have been triggered (see Help > Open logs folder in the KM Editor).

Also, try Help > Interactive Help.

1 Like

Both 2 macros are in the Global Macro Group, they are almost the same, except 1 relies on the %SystemClipboard%, the other one on the 'temporaryClipboard'.

As long as the 2 macros have the same hot key trigger, they both work.

When 1 of them gets a different hot key trigger, only one of them works.

When 1 of them gets NO hot key trigger at all, the remaining macro will not work.

DISCLAIMER: If we cannot solve this issue, then we can leave it as it is.
(It's weird, and many things are weird, whereas most things are beautiful.)

/
best regards,
OmarKN

As @kevinb suggested, if a macro is not doing anything, use the Interactive Help, select Something expected is not happening, and see what it has to say.

Almost the same... Ah well... :wink:

So you need to check what the contents of both clipboards are while your macros are running. It would appear that the contents of both clipboards are significant for the running of your (combined!) macro.

If only while testing, perhaps put them both in the same new macro group. That would be firstly for focus of attention, but also, I get the impression (perhaps mistakenly?) that the macros are only needed while BBEdit is the foreground application; if that is the case, limit that new macro group to be available within BBEdit only.

If you can spot another way of doing what you need to (within BBEdit?) then fine, but otherwise, that sequence of steps is not in itself an unusual or inelegant way of doing things in a KM macro.

As a general tip: one can either follow the instructions in the KM Wiki or do the following:

  1. Select the macro in the KM Editor.
  2. Select File > Export and save the macro to (for example) the Desktop.
  3. Drag the exported macro file into the post.

That method is quite simple but one does then have to deal with pasting in an image of the macro (if required) into the post separately.

This is what I did:

One of the 2 macros, I set to hot key NONE, and tested the remaining:

Interactive Help - in step 3

Macro Was Triggered

The macro "Add item5 β†’ onequranverse.php (no success when only 1 'Add item')" has fired once.

Since the macro was triggered, you know that it is running the actions. If you are still not getting the results you want, you need to look at the actions you are using. Some common issues you might run in to include…

\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I reinstated the 2nd macro, gave it the same hot key, and whoops! both work.

Later I put the macros into their own group,
deleted the one which was necessary before,
and added another different macro with the same hot key.

So everything is working as it should.

/
best regards,
OmarKN