Scrapping articles from a book; help on how to pass the user prompt to Paste

I am trying to make KM to paste 5, 6, or 8 times based on my needs. But, I don’t know how to use the user promt (variablt) to send to the Paste.

What I want is: as the user Prompt asks me: I want to write 8; and KM would paste and hit the escape key 8 times: if I write 5, KM would do it 5 times etc.

I am trying to scrap the articles of a collection book into a reference, crossrefed, into Jabref.

See if this helps:

In the Prompt, I'm asking for the value of the variable "Repeat Count". Then I use it in a "Repeat" action.


  1. The fact that "Repeat Count" is orange in the "Repeat" action just means the variable doesn't have a value yet. You can ignore the color. It'll be fine when you run it. Same for the red "invalid" - that will go away once "Repeat Count" actually has a value, like it will when you run the macro.

  1. When you first insert the "Repeat" action, it will look like this:

Just put your cursor into the field with the "1", delete the "1", and type (or paste) the name of the variable. The Action will change to look like this:

Hope this helps. Let me know if you still have questions.


This worked perfectly. I was stuck. Thank you very much.

1 Like