Nice idea, although I fear it will break due to AppleScript. I might take some time to investigate doing it all as a Swift CLI.