Is it possible to load or update a macro group programmatically or based on an external file?
Here's my use case:
TextExpander has the ability to read and load snippets from an external file. Before they switched to their subscription pricing model and I switched to Keyboard Maestro for text expansion, I had a group that I added based on an external file was generated with a script that runs every few hours (the script parses a bunch of BibTeX files (bibliography files for LaTeX) and saves their unique citation keys to a local file). I then used TextExpander's “Search Snippets” hotkey to search and insert the citekeys as I write.
Keyboard Maestro appears to have very similar capabilities, especially with its group-specific palettes (i.e. it would be really easy to search in a list of macros). It's easy enough to make a bunch of simple macros (like the fake Smith, Jones, and Johnson entries in this screenshot), and then use a palette to insert them:
However, I have not found a way to programmatically update that list of macros (i.e. every few hours, check the list of citation keys and refresh it in Keyboard Maestro). Is there a way to have a macro group load or import macros from an external file? Or, barring that, perhaps a way to use Applescript or something to redefine macros?