Mass / batch change to macros

I have several macros that I've defined to enter tag words for me in Bookends. In the text that KM types, I've added a return character (:leftwards_arrow_with_hook:︎) or two (by pressing return). What I would like to do is:

  • Add a 'type a keystroke' action after the insert text action that simulates an Enter key press.

  • Optionally, remove the return character(s) I typed into the text field.

Thus,


becomes

or... read a list of tag words from a text file, and create a palette of short cuts that Insert Text and the Type the Enter Keystroke.

Thanks for any suggestions!

Using the KM Prompt With List action it is easy enough to prompt you with a list from a file, and provide Spotlight-like search/autocomplete of your selection. Then you take the results and use in the Insert Text Action with the Type a Keystroke.

However, I don't know of any way to turn a list into a palette, without a very substantial AppleScript that creates a KM group on the fly.

Pseudocode

  1. Set TagToInsert to Prompt with List from File
  2. Insert Text %Variable%TagToInsert%
  3. Type Keystroke RETURN
1 Like