Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlarky/jxa-click-app-menu
JXA JavaScript Apple Script to click on application sub menu item
https://github.com/jlarky/jxa-click-app-menu
Last synced: about 1 month ago
JSON representation
JXA JavaScript Apple Script to click on application sub menu item
- Host: GitHub
- URL: https://github.com/jlarky/jxa-click-app-menu
- Owner: JLarky
- Created: 2024-05-11T18:20:13.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T18:29:14.000Z (8 months ago)
- Last Synced: 2024-10-11T23:15:36.966Z (3 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Based on https://gist.github.com/bumaociyuan/a37c78cd5503f371b391 and [bun-self](https://www.npmjs.com/package/bun-self)
## Usage
Clone the repo
```bash
git clone https://github.com/JLarky/jxa-click-app-menu.git
cd jxa-click-app-menu
```Run it as a regular script
```bash
./script.run.js
```To make it do exactly what you want, edit `btnDebug` and app name in `script.run.js`
```js
// show About Finder popup
menuItemTestClick("Finder", ["Finder", "About Finder"]);
```# Example