Triggering two macros with same name on same Mac

In your Wiki you describe how an active macro can be triggered using a "kmtrigger" x-callback-type scheme.

I find I can successfully launch a macro by using this scheme with the urlencoded name of the macro as its value, such as:

kmtrigger://macro=Data%20Apps

This can be launched in a variety of ways, as, for instance, a shell script of the form:

#!/bin/bash
open kmtrigger://macro=Data%20Apps

But I also see that it is possible in the KM editor to have two macros with exactly the same name.

I do have two with the same name, differing slightly in execution steps, one being in a disabled group for one Mac, and the other being in an enabled group for another Mac (all macros are synced via Dropbox).

But I see that I can, if I want, enable both groups on one Mac, thus allowing two macros with exactly the same name to be enabled on the same Mac.

So what would happen if I used the x-callback-type trigger for such a macro name in such a case?

You can trigger a macro in a number of ways by URL - even macros with the same name.

To find out what the URL is select the "Or by URL" option in the trigger section of the macro, an example of which looks like this:

KM 0 2021-01-11_23-27-38

You can use any of those URLs as the trigger - just copy the one you want. Similarly, for other macros do the same and copy the URL to use any way you wish. Obviously for macros with the same name you should use a URL with the UUID in it.

Hope that helps...