{"id":13394893,"url":"https://github.com/JXA-Cookbook/JXA-Cookbook","last_synced_at":"2025-03-13T20:31:45.748Z","repository":{"id":22529437,"uuid":"25870036","full_name":"JXA-Cookbook/JXA-Cookbook","owner":"JXA-Cookbook","description":"Cookbook for JavaScript for Automation in Mac OS X Yosemite","archived":false,"fork":false,"pushed_at":"2014-11-02T17:07:07.000Z","size":1981,"stargazers_count":2891,"open_issues_count":7,"forks_count":116,"subscribers_count":92,"default_branch":"master","last_synced_at":"2024-10-29T17:56:02.578Z","etag":null,"topics":["catalina","cookbook","el-capitan","javascript","jxa","wiki","yosemite"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JXA-Cookbook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-28T13:15:58.000Z","updated_at":"2024-10-28T06:23:58.000Z","dependencies_parsed_at":"2022-07-07T23:11:05.389Z","dependency_job_id":null,"html_url":"https://github.com/JXA-Cookbook/JXA-Cookbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JXA-Cookbook%2FJXA-Cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JXA-Cookbook%2FJXA-Cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JXA-Cookbook%2FJXA-Cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JXA-Cookbook%2FJXA-Cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JXA-Cookbook","download_url":"https://codeload.github.com/JXA-Cookbook/JXA-Cookbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243478221,"owners_count":20297213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["catalina","cookbook","el-capitan","javascript","jxa","wiki","yosemite"],"created_at":"2024-07-30T17:01:35.339Z","updated_at":"2025-03-13T20:31:45.704Z","avatar_url":"https://github.com/JXA-Cookbook.png","language":"Ruby","funding_links":[],"categories":["Ruby","Documentation"],"sub_categories":[],"readme":"[JavaScript for Automation Cookbook][wiki]\n==================================\n\nJavaScript for Automation is a new thing in Mac OS X Yosemite.\nIt allows you to control applications using JavaScript language. How awesome!\n\nHowever, [its documentation](https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html) covers the basics of using JavaScript to interact with the Open Scripting Architecture.\nFor many tasks in scripting, there's a lot to figure out, and many different documentations to refer to.\n\nSo I created this JavaScript for Automation cookbook that features a lot of examples, such as:\n\n- How to [display alert, prompt and confirm dialogs](https://github.com/dtinth/JXA-Cookbook/wiki/User-Interactions).\n- How to [run shell scripts](https://github.com/dtinth/JXA-Cookbook/wiki/Shell-and-CLI-Interactions).\n- How to [create a command-line script](https://github.com/dtinth/JXA-Cookbook/wiki/Using-JavaScript-for-Automation#creating-a-shebang-script) (shebang script) and read `argv` arguments, how to create a [Mac OS X service](https://github.com/dtinth/JXA-Cookbook/wiki/Using-JavaScript-for-Automation#creating-a-mac-os-x-service), or how to [invoke the REPL](https://github.com/dtinth/JXA-Cookbook/wiki/Using-JavaScript-for-Automation#running-the-repl-read-eval-print-loop).\n- How to [use Browserify to be able to require npm modules](https://github.com/dtinth/JXA-Cookbook/wiki/Exotic-Recipes#requiring-commonjs-and-npm-modules-using-browserify) in JXA.\n\nWhere it makes sense, I try to link to the official documentation as much as possible so you can dive deeper.\n\nFor ease of editing and contribution, the cookbook's contents are on the [wiki][].\n\n[![Enter Wiki](https://svg-buttons.herokuapp.com/button/plain.svg?button_width=400\u0026text=Enter+Wiki)][wiki]\n\n[wiki]: https://github.com/dtinth/JXA-Cookbook/wiki\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJXA-Cookbook%2FJXA-Cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJXA-Cookbook%2FJXA-Cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJXA-Cookbook%2FJXA-Cookbook/lists"}