Run an OSA JavaScript source string.
OSA JavaScript is Apple's Open Scripting Architecture dialect of
JavaScript, distinct from the JavaScriptCore engine that runs
Hammerspoon scripts themselves.
Scripts run in parallel; chain Promises if they must run in order (see the module overview).
Parameters
source: string
The OSA JavaScript source code to compile and execute.
Run an OSA JavaScript source string. OSA JavaScript is Apple's Open Scripting Architecture dialect of JavaScript, distinct from the JavaScriptCore engine that runs Hammerspoon scripts themselves. Scripts run in parallel; chain Promises if they must run in order (see the module overview).