Low-level synchronous execution entry point.
Prefer applescriptSync() or javascriptSync() 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.
Parameters
source: string
The script source code.
language: string
The OSA language name — must be "AppleScript" or "JavaScript".
Returns Record<string,any>|null
An object { success, result, raw }, or null on XPC failure.
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.