# JXA-Cookbook/JXA-Cookbook

Cookbook for JavaScript for Automation in Mac OS X Yosemite

Repository: https://github.com/JXA-Cookbook/JXA-Cookbook
Canonical: https://ross.abutalabs.com/products/jxa-cookbook
Language: Ruby
License: MIT
License Family: permissive
Topics: catalina, el-capitan, jxa, javascript, yosemite, wiki, cookbook
Last push: 2025-06-06T00:42:08+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 25, release rhythm 35, longevity 100
- inputs: {"age_days": 4327, "days_push": 454, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2997, forks 119 (observed 2026-08-28T04:07:37.188847+00:00)

## What it is
A community cookbook (hosted as a GitHub wiki) of examples and recipes for JavaScript for Automation (JXA) on macOS. It teaches how to control applications, run shell scripts, create command-line tools, and use dialogs with JavaScript instead of AppleScript.

## Use cases
- learn how to script macOS apps with JavaScript
- create a shebang command-line script using JXA
- display alert and prompt dialogs from JavaScript for Automation
- run shell commands from a JXA script
- require npm modules inside JXA using Browserify
- find JXA examples beyond Apple's official documentation

## When to choose
- you want to automate macOS applications using JavaScript instead of AppleScript
- you need practical, example-driven recipes for JXA tasks
- you are building macOS services or CLI scripts with JavaScript for Automation

## When to avoid
- you need official, exhaustive API reference documentation
- you are scripting on platforms other than macOS
- you need a maintained library or tool rather than reference examples

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: documentation, developer-tools, cli
- domain: operating-systems, developer-tools, tutorials
- platform: -
- tags: jxa, javascript-for-automation, osascript, apple-scripting, cookbook, wiki, automation, command-line, macos, javascript

## Member repositories
- JXA-Cookbook/JXA-Cookbook (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.188847+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:30:37.152858+00:00, confidence not recorded.
  - readme: https://github.com/JXA-Cookbook/JXA-Cookbook (fetched 2026-08-28T04:07:37.188847+00:00, sha 49b878ca193e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
