How to randomly select a "Insert Styled Text by Pasting" action in a macro?

Hello all,

I have a "Insert Styled Text by Pasting" action which works great. It pastes formated text when I trigger it.

I would like to have the macro randomly choose between a small list of formatted text lines.

Example: when the macro is triggered, it selects one of these three lines…

Check out the new episode of our podcast!
Check out our newest release!
Check out our new blog post!

…then it pastes the random line into my active text field.

Any ideas?

Thanks!

Jim

While this solution doesn't take advantage of your existing list, it would still be my suggestion for something easy and effective:

Insert Random Text.kmmacros (7.1 KB)

2 Likes

Brilliant! Thank you @gglick!

1 Like