[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7891":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":9,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":33,"discoverSource":34},7891,"JXA-Cookbook","JXA-Cookbook\u002FJXA-Cookbook","Cookbook for JavaScript for Automation in Mac OS X Yosemite","",null,"Ruby",2988,118,89,7,0,2,58.43,"MIT License",false,"master",true,[23,24,25,26,27,28,29],"catalina","cookbook","el-capitan","javascript","jxa","wiki","yosemite","2026-06-12 04:00:36","[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:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Fmac\u002Freleasenotes\u002FInterapplicationCommunication\u002FRN-JavaScriptForAutomation\u002Findex.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:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\u002FUser-Interactions).\n- How to [run shell scripts](https:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\u002FShell-and-CLI-Interactions).\n- How to [create a command-line script](https:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\u002FUsing-JavaScript-for-Automation#creating-a-shebang-script) (shebang script) and read `argv` arguments, how to create a [Mac OS X service](https:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\u002FUsing-JavaScript-for-Automation#creating-a-mac-os-x-service), or how to [invoke the REPL](https:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\u002FUsing-JavaScript-for-Automation#running-the-repl-read-eval-print-loop).\n- How to [use Browserify to be able to require npm modules](https:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\u002FExotic-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:\u002F\u002Fsvg-buttons.herokuapp.com\u002Fbutton\u002Fplain.svg?button_width=400&text=Enter+Wiki)][wiki]\n\n[wiki]: https:\u002F\u002Fgithub.com\u002Fdtinth\u002FJXA-Cookbook\u002Fwiki\n","JXA-Cookbook 是一个面向 Mac OS X Yosemite 的 JavaScript 自动化脚本指南。该项目提供了丰富的示例代码，涵盖了从用户交互（如显示警告、提示和确认对话框）到运行 shell 脚本，再到创建命令行脚本和服务等多种应用场景。它还介绍了如何利用 Browserify 在 JXA 中引入 npm 模块，从而扩展了自动化脚本的功能。JXA-Cookbook 适合需要在 macOS 环境下通过 JavaScript 进行系统级或应用级自动化的开发者使用，尤其对于那些希望深入了解并实践 JavaScript for Automation (JXA) 技术的用户来说非常有价值。","2026-06-11 03:14:56","top_language"]