Hey I'm stoked that you were able to get it working. I should have thought of this a little earlier because my wife's MacBook is an M1 and I had to setup the environmental path variable differently on hers... but that was so long ago I forgot haha.
Anyhoo, be sure to let me know how you like the macro itself and if you have any ideas to improve it.
If you're a Typinator user, check out the macro I built to quickly add a mistyped word to a set using Typinator's AppleScript dictionary and Aspell to provide spelling suggestions.
Finally, I would appreciate the help if someone can implement this on aspell instead of hunspell or edit the macro so it use aspell when it is a normal world and use hunspell when it is a medical term.
Hey there! Thanks for trying out the macro and I'm glad to see it's proven useful for you.
The only way I can think of to easily modify it to differentiate between medical and non-medical words is to use two different triggers, and use the two different CLI programs (aspell and hunspell) according to which trigger you used.
For an idea of what I mean by this, see these two screenshots which are part of another macro I built that also uses Aspell.
Obviously you could simplify that by just using the actual triggers in the switch action; again this is just an example taken from my other aforementioned macro here: