Keyboard Maestro “Paste and highlight” Macro

Keyboard Maestro “Paste and highlight” Macro

Paste and highlight copy.kmmacros (2.9 KB)

I am trying to create a macro to paste text from my clipboard and select the pasted text. However, in the macro, the "for each" action does not accept variables instead of a fixed number. How do I accomplish this?

Edit: This macro will paste text from the clipboard and select the pasted text. Thanks @Kirby_Krieger

Use the “Repeat” action. It should accept the number in your variable “clipxtercount” in the field that tells it how many times to repeat.

Paste
Repeat clipxtercount times [Type ⇧{left-arrow}]

Hmm.

Probably my bad. But this (different one) works on my system:

Thanks. I updated the macro. I mistakenly used the token instead of the variable.