Thanks Jay.
My goal is to completely eliminate AppleScript, at least from Home Automation. I see the writing on the wall (Apple's). They've done a p-poor job of implementing and documenting AppleScript throughout the years, even in their own apps. And it really is a shame. It's one of the main things that sets Mac OS apart from others, and is something I rely on heavily throughout my workflow (personal and business).
The new Mojave security measures are really playing havoc with my scripts and AppleScript apps. It's probably just a matter of time before Apple dumps it altogether. Any company that could abandon MagSafe will abandon anything!
I figure it's prudent to start weening myself off of AppleScript, wherever possible.
And to be honest, I've used this opportunity to rid my HA of all but the essential. It was great fun implementing all I could get it to do, over the years, but the reality is, I got carried away, and should limit my system to doing what I really need it to do, not what I can get it to do. For example, do I really need thousands of lines of code to automate and run my whole-house audio, or can I get by with turning on my amps and using Apple's iPhone app "Remote" to run iTunes. Apple has broken iTunes AppleScript support so many times, I've spent more time fixing code than listening to music!! Less is more...