Skip to main content
Generalbendrucker

mac:jxa-run

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.

Stars
13
Source
bendrucker/claude
Updated
2026-05-31
Slug
bendrucker--claude--jxa-run
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/bendrucker/claude/HEAD/plugins/mac/skills/jxa-run/SKILL.md -o .claude/skills/jxa-run.md

Drops the SKILL.md into .claude/skills/jxa-run.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

Run JXA

Run the JXA expression or script file provided in the arguments. $0 is the app name, remaining arguments are passed to the runner.

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

Return the output to the caller.