Skip to main content

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.

Source facts

Repository
bendrucker/claude
Last source activity
September 26, 2026 at 03:57
Detected SKILL.md language
English
Stars
18
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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
<app> <expression-or-script-file>
effort
low
allowed-tools
["Bash(bun ${CLAUDE_PLUGIN_ROOT}/scripts/jxa.ts:*)"]
hooks
{"PreToolUse":[{"matcher":"Bash(bun ${CLAUDE_PLUGIN_ROOT}/scripts/jxa.ts:*)","hooks":"[Truncated]"}]}
# Run JXA Run the JXA expression or script file from the arguments. `$0` is the app name. Runner flags (`-e`) go before the script path. Every argument after the script path reaches the script unchanged, its own flags included. ```bash bun ${CLAUDE_PLUGIN_ROOT}/scripts/jxa.ts $ARGUMENTS ``` Return the output to the caller.
View on GitHub