Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JXA-Cookbook/JXA-Cookbook
Cookbook for JavaScript for Automation in Mac OS X Yosemite
https://github.com/JXA-Cookbook/JXA-Cookbook
catalina cookbook el-capitan javascript jxa wiki yosemite
Last synced: about 2 months ago
JSON representation
Cookbook for JavaScript for Automation in Mac OS X Yosemite
- Host: GitHub
- URL: https://github.com/JXA-Cookbook/JXA-Cookbook
- Owner: JXA-Cookbook
- Created: 2014-10-28T13:15:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-02T17:07:07.000Z (about 10 years ago)
- Last Synced: 2024-10-22T04:29:17.422Z (2 months ago)
- Topics: catalina, cookbook, el-capitan, javascript, jxa, wiki, yosemite
- Language: Ruby
- Homepage:
- Size: 1.89 MB
- Stars: 2,888
- Watchers: 92
- Forks: 116
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred-test - JXA-Cookbook/JXA-Cookbook - Cookbook for JavaScript for Automation in Mac OS X Yosemite (Ruby)
- awesome-jxa - JavaScript for Automation Cookbook
- awesome-jxa - JavaScript for Automation Cookbook
README
[JavaScript for Automation Cookbook][wiki]
==================================JavaScript for Automation is a new thing in Mac OS X Yosemite.
It allows you to control applications using JavaScript language. How awesome!However, [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.
For many tasks in scripting, there's a lot to figure out, and many different documentations to refer to.So I created this JavaScript for Automation cookbook that features a lot of examples, such as:
- How to [display alert, prompt and confirm dialogs](https://github.com/dtinth/JXA-Cookbook/wiki/User-Interactions).
- How to [run shell scripts](https://github.com/dtinth/JXA-Cookbook/wiki/Shell-and-CLI-Interactions).
- 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).
- 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.Where it makes sense, I try to link to the official documentation as much as possible so you can dive deeper.
For ease of editing and contribution, the cookbook's contents are on the [wiki][].
[![Enter Wiki](https://svg-buttons.herokuapp.com/button/plain.svg?button_width=400&text=Enter+Wiki)][wiki]
[wiki]: https://github.com/dtinth/JXA-Cookbook/wiki