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.
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.statustakes{}and returnsvisible,frontApp,frontAppName,activeProfile,activeProfileName,profiles(id,name,apps,slices,isDefault),permissions(accessibility,inputMonitoring),triggers(shortcut,mouse),settings,needsAccessibility,needsInputMonitoring,lastRun,lastErrorandloadProblem.radialMenu.configurationtakes{}and returnsversionandprofiles, the whole saved menu.radialMenu.importtakes{"configuration": {...}}in that shape, checks all of it and replaces the menu.radialMenu.resetputs the starter menu back.radialMenu.resolvetakes an optionalbundleID(the front app when left out) and returnsbundleID,matchedand theprofilethe menu would show.radialMenu.profile.createtakesname, optionalapps(bundle identifiers) and optionalcopyFrom(a profile id whose slices are copied).radialMenu.profile.updatetakesprofileandnameorapps.radialMenu.profile.deletetakesprofileand returnsdeleted; the default profile cannot be deleted. An app belongs to one profile at most.radialMenu.item.addtakesprofile,item, optionalparent(the path of a submenu) and optionalindex.radialMenu.item.updatetakesprofile,pathanditem, and keeps the slice id.radialMenu.item.movetakesprofile,from,parentandindex, the way a drag and drop on the page does. These returnprofileand the slice's newpath.radialMenu.item.removetakesprofileandpathand returnsprofileandremoved.radialMenu.item.validatetakesitemand optionalparent, saves nothing and returnsvalid,problemsand thetitlethe slice would show.radialMenu.opentakes an optionalprofileand shows the menu at the pointer for clicking.radialMenu.closehides it. Both return the status.radialMenu.runtakesprofileandpathand runs that slice without opening the menu. It returnsstartedandkind; a failure shows up aslastErrorin the status.radialMenu.permissiontakespermission(accessibilityorinputMonitoring), 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.