I'm attempting to use a trigger to output new lines from an itemized list.
Trigger is pressed = Line 1
Trigger is pressed again= Line 2
etc.
I've dug into the forum some & it appears to create this buffer I could approach it from nearly 4 different angles. Shell scripts, javascript, applescripts or regex. Is this correct? Are there advantages/drawbacks to each approach?
This is just an example written in response to the below KM Forum Topic. You will need to use as an example and/or change to meet your workflow automation needs.
MACRO SETUP
Carefully review the Release Notes and the Macro Actions
Make sure you understand what the Macro will do.
You are responsible for running the Macro, not me.
HOW TO USE
Each time you press the Hot Key, the next line in the file will be pasted
The first time, and after all lines have been pasted, the file will be read and the tracking KM Variables will be set
So this will stay in an infinite loop, pasting one line at a time.
You can edit the source file any time, and after all lines in the current file have been pasted, it will use the updated file.
You can force the Macro to start from the beginning of the file by doing a long press of the hot key.
==NOTE: You will need to change the Long Press Key to Match the Hot Key Trigger==
Wow @JMichaelTX, thank you so much for writing this. This works flawlessly. I'll start familiarizing myself with what you crafted so I can hopefully help others in the future.