How do you run inline Applescript from a JXA/JavaScript for Automation script on macOS?
问题 I have a script written in JavaScript which needs to run one small piece of AppleScript (to achieve some functionality I've been unable to implement due to a number of factors natively in JS). It should be able to take a single string argument, and is pretty much a tell-endtell one liner. Is it possible to assemble this nanoprogramme as a string in JavaScript then pass the string to the AppleScript environment for execution, and how would that be done? There's plenty of explanations online