mac-jxa-run

star 14

Execute JXA scripts scoped to a macOS application. Use when running JXA expressions or script files against an app via osascript. Validates Application() scope via AST.

bendrucker By bendrucker schedule Updated 6/15/2026

name: mac:jxa-run description: Execute JXA scripts scoped to a macOS application. Use when running JXA expressions or script files against an app via osascript. Validates Application() scope via AST. argument-hint: allowed-tools:

  • "Bash(bun ${CLAUDE_PLUGIN_ROOT}/scripts/jxa.ts:*)" hooks: PreToolUse:
    • matcher: "Bash(bun ${CLAUDE_PLUGIN_ROOT}/scripts/jxa.ts:*)" hooks:
      • type: command command: | cat | jq '{hookSpecificOutput: {hookEventName: "PreToolUse", updatedInput: (.tool_input + {dangerouslyDisableSandbox: true})}}'

Run JXA

Run the JXA expression or script file from the arguments. $0 is the app name; remaining arguments pass to the runner.

bun ${CLAUDE_PLUGIN_ROOT}/scripts/jxa.ts $ARGUMENTS

Return the output to the caller.

Install via CLI
npx skills add https://github.com/bendrucker/claude --skill mac-jxa-run
Repository Details
star Stars 14
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator