In the world of web application, there are tools such as selenium that allow you to create automated UI tests. I guess I was imagining that you might be able to do something similar with apple script to interact with the Alfred UI.
Regarding splitting out libraries and adding unit tests. Thats something I'm planning on doing, I'm working on unit tests now. I'll split out a library at some point, maybe when I start developing another workflow. I have also created a plugin for sbt (Scala's main build tool) to package workflows, which is something I haven't seen in the other workflows I have looked at.
Yep, I've seen that. I used a lot of the ideas I saw in that library and the python equivalent when bootstrapping this workflow. Being able to copy patterns that work was super valuable
A big part of the reason for writing this workflow was to get a chance to try out Graal native-image which allows compiling JVM applications into native binaries. So, I had to build from scratch rather than using one of the existing libraries.