Skip to content
Edith

Docs

Command reference

Radial Menu

Radial Menu has no command group of its own. Every action on its page and Home card is an operation of the running extension, sent through ed invoke with a JSON payload. Results are JSON on stdout; a refused request prints a JSON error on stderr and exits non-zero. The Radial Menu page and its settings cover how the menu opens and behaves.

Terminal
ed invoke radialMenu radialMenu.status --json '{}'ed invoke radialMenu radialMenu.resolve --json '{"bundleID":"com.apple.Safari"}'ed invoke radialMenu radialMenu.profile.create --json '{"name":"Browsers","apps":["com.apple.Safari"]}'ed invoke radialMenu radialMenu.item.add --json '{"profile":"default","item":{"title":"Notes","kind":"app","target":"Notes"}}'ed invoke radialMenu radialMenu.item.move --json '{"profile":"default","from":[0],"parent":[3],"index":0}'ed invoke radialMenu radialMenu.open --json '{}'

Slices

A slice is {"id", "title", "kind", "target"}. A submenu is {"id", "title", "kind": "submenu", "items": [...]}. A missing id gets a new one and a missing title is taken from the target.

Kind Target
app An app name, a bundle identifier or a full path
file A full path to a file, ~ allowed
folder A full path to a folder, ~ allowed
link A link with a scheme other than file or javascript
shortcut The name of an Apple Shortcut, run with shortcuts run
keys Modifiers and a key joined by +, such as command+shift+4
command An ed command line, such as app navigate clipboard
submenu No target; its slices are in items

A ring holds up to 12 slices and submenus nest 4 rings deep. A path lists slice positions from the first ring, so [3, 1] is the second slice inside the fourth slice.

Operations

  • radialMenu.status takes {} and returns visible, frontApp, frontAppName, activeProfile, activeProfileName, profiles (id, name, apps, slices, isDefault), permissions (accessibility, inputMonitoring), triggers (shortcut, mouse), settings, needsAccessibility, needsInputMonitoring, lastRun, lastError and loadProblem.
  • radialMenu.configuration takes {} and returns version and profiles, the whole saved menu. radialMenu.import takes {"configuration": {...}} in that shape, checks all of it and replaces the menu. radialMenu.reset puts the starter menu back.
  • radialMenu.resolve takes an optional bundleID (the front app when left out) and returns bundleID, matched and the profile the menu would show.
  • radialMenu.profile.create takes name, optional apps (bundle identifiers) and optional copyFrom (a profile id whose slices are copied). radialMenu.profile.update takes profile and name or apps. radialMenu.profile.delete takes profile and returns deleted; the default profile cannot be deleted. An app belongs to one profile at most.
  • radialMenu.item.add takes profile, item, optional parent (the path of a submenu) and optional index. radialMenu.item.update takes profile, path and item, and keeps the slice id. radialMenu.item.move takes profile, from, parent and index, the way a drag and drop on the page does. These return profile and the slice's new path. radialMenu.item.remove takes profile and path and returns profile and removed.
  • radialMenu.item.validate takes item and optional parent, saves nothing and returns valid, problems and the title the slice would show.
  • radialMenu.open takes an optional profile and shows the menu at the pointer for clicking. radialMenu.close hides it. Both return the status.
  • radialMenu.run takes profile and path and runs that slice without opening the menu. It returns started and kind; a failure shows up as lastError in the status.
  • radialMenu.permission takes permission (accessibility or inputMonitoring), asks macOS for it and returns the status.

Keyboard slices need Accessibility. The mouse button trigger needs Input Monitoring and Accessibility. Nothing else needs a permission.