Hold ⌘ double tap C to combine current clipboard & last clipboard (like Alfred merging)


clip & double tap merging.kmmacros (3.9 KB)



Hi, @e20. Thanks for sharing your clever and useful macro (which includes the trigger: The hot key X is released).

I did find one minor issue: on a very fast Mac, if the second press is not done very quickly after the macro is triggered, the The key C is down fails.

Below is a modified version that is more forgiving.

DOWNLOAD Macro File:
clip & double tap merging (v2).kmmacros (7.7 KB)



HI @e20, have you seen this macro yet?

1 Like

I didn't even know the variable %ActionResult% before.
Thanks for the suggestions and improvements.

1 Like

You're welcome, @e20. As one that has received help many times from others on this forum, it's nice to occasionally contribute.

%ActionResult% is one of the many Tokens that can be used within Keyboard Maestro macros. Here's a list of tokens that I use frequently:

I don't see %Delete% in the wiki list, but when used within a Set Variable to Text action, the variable is deleted.

Keyboard Maestro Export

Keyboard Maestro Export

One might ask why this is necessary with local variables since they are automatically deleted when a macro ends. That's true and it's not needed for that purpose. I use it in cases where I have a loop and I want to reset the value of a local variable. Alternatively, a null value could be used in the Set Variable to Text action to reset the variable, but I prefer to use the %Delete% token for clarity.

1 Like