hammerspoon2-docs
    Preparing search index...

    Function applescriptSync

    • Run an AppleScript source string synchronously. Blocks the JS thread until the script completes.

      Parameters

      • source: string

        The AppleScript source code to compile and execute.

      Returns Record<string, any> | null

      An object { success, result, raw }, or null on XPC failure.