menu
Click macOS app menu-bar items by name path or list available items, even in background apps without stealing focus.
Instructions
Use an app's menu bar by item names, e.g. path ["File", "Save…"]. A path ending on a menu (or empty) lists its items; ending on an item clicks it. Works on background apps. Names are localized ("..." matches "…").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| path | No |