Low-level synchronous execution entry point.
Prefer applescriptSync() or javascriptSync() over calling this directly.
applescriptSync()
javascriptSync()
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 script source code.
The OSA language name — must be "AppleScript" or "JavaScript".
"AppleScript"
"JavaScript"
An object { success, result, raw }, or null on XPC failure.
{ success, result, raw }
null
Low-level synchronous execution entry point.
Prefer
applescriptSync()orjavascriptSync()over calling this directly.Warning: blocks Hammerspoon's main thread until the script completes, so nothing else in Hammerspoon can run in the meantime. Prefer the async API.