Run an OSA JavaScript source string synchronously.
Warning: blocks Hammerspoon's main thread until the script completes, so nothing else in Hammerspoon can run in the meantime. Prefer the async API.
The OSA JavaScript source code to compile and execute.
An object { success, result, raw }, or null on XPC failure.
{ success, result, raw }
null
Run an OSA JavaScript source string synchronously.
Warning: blocks Hammerspoon's main thread until the script completes, so nothing else in Hammerspoon can run in the meantime. Prefer the async API.