PopClip JavaScript API Reference
    Preparing search index...

    Interface ShellScriptResult

    What a successful shell script run resolves with. A failed run does not produce this — it rejects, with the same fields (plus terminationReason) carried on the error.

    interface ShellScriptResult {
        status: number;
        stderr: string;
        stdout: string;
        toString(): string;
    }
    Index
    status: number

    The exit status — always 0 here, since a nonzero exit rejects.

    stderr: string

    The script's standard error output (also logged to the extension's debug output).

    stdout: string

    The script's standard output.

    • The result's text form: stdout with trailing newlines stripped — the same rule as shell command substitution. This is what you get interpolating a result into a template or string, and a result returned from an action feeds the -result after-steps as this text too.

      Returns string