Input text to insert?

I’d like to create a macro that allows me to provide the input for several insertions. So I would trigger the macro and then be prompted for several different text strings that would then be inserted in the right place.

Can that be done with Keyboard Maestro?

In TextMate “language” it would look something like:

$1{.caption .image-right .image-25}$0

You can use the Prompt for User Input action to ask for input and then use the variable in the text you insert (see Text Fields for more information on using the resulting variable).

You can also potentially include the information in the Typed String trigger as described in the topic Regular Expression Typed String Example

1 Like

OK! I think I’ve got it. It’s two separate action tiles - one to get the input and another to paste it in.

It looks like I have it working.

Thanks!

Correct. That’s the way Keyboard Maestro works - each action tries to be orthogonal, doing only one thing. Then you assemble them like lego bricks - old style lego bricks not the new fangled stuff where there is more unique blocks than standard blocks.