Copy Text to Fill Variables

Hi All,

I need to copy strings from differents sources and positions to clipboard and fill the corresponding vars which I can use later in templates.

I've created the following macro:

  • Action 1: Show notification what to copy
  • Action 2: Pause until clipboard content is changed by a manual copy from outside the macro of the desired text.
  • Action 3: Place the copied text into the variable.
  • Action 4: Just for testing purpose to show the content of the filled variable.
  • Followed again by action 1 for the next variable string etc.

I know I can do this by filing the variables via user prompt, but would like to avoid pasting into the prompted fields dialog. Can anyone point me to the right direction?


ask Vars.kmmacros (3.5 KB)

Hey @Neo,

Welcome to the forum!  :sunglasses:

Don't set the clipboard – set a variable from the clipboard:


Otherwise it looks to me like you have the general idea.

I would seed the clipboard with a known value before starting copying.


1 Like

Hey Chris, changed the Set Variable as suggested but does not do the trick yet. The variable does not get filled. I have doubts about my 2nd action which I found in the forum to to pause until the clipboard content changes. Is this action correct ?

I do a %Delete% on all variables before this macro kicks in.

Thanks for your help!
ask Vars.kmmacros (2.9 KB)

Hey @Neo,

The macro you uploaded was somehow broken. I had to duplicate it, delete and recreate the hotkey trigger to get it working.

Not sure what's up with that...

In any case – you missed a step in creating the clipboard seed. See the appended macro for details.


Ask To Copy Variables.kmmacros (4.3 KB)


Keyboard Maestro Export

1 Like

Hey Chris,

Thanks for your help!