Command reference
ed permissions refresh
Ask the running app to check every permission again, then print what it
found. Run it when you suspect what ls showed you is stale.
ed permissions refresh [--json]Options
| Name | Type / values | Default | What it does |
|---|---|---|---|
--json |
flag | off | Emit JSON on stdout |
--json shape
A top-level array, not an object, carrying the same ten permission objects ls
puts under its permissions key. There is no appRunning field, because the
command cannot get this far with the app closed. Trimmed here to two rows:
[ { "blocksEnabledExtension": true, "granted": false, "grantsOnFirstUse": false, "id": "calendar", "name": "Calendar", "optionalFor": [], "reason": "Required to read and show your schedule in Calendar.", "requiredBy": [ "calendar" ], "usedByEnabledExtension": true }, { "blocksEnabledExtension": false, "granted": true, "grantsOnFirstUse": false, "id": "notifications", "name": "Notifications", "optionalFor": [ "usage", "machines" ], "reason": "Asked when you turn on usage alerts or app update notifications.", "requiredBy": [], "usedByEnabledExtension": true }]ed permissions refreshed permissions refresh --json | jq -r '.[] | select(.blocksEnabledExtension) | .id'Behaviour
It posts one refresh notification, sleeps 1200 ms, and prints what the mirror says then. The sleep is fixed rather than a reply it waits on, so a machine under load can print a mirror the app is still mid-way through updating; running it twice costs nothing.
The human table is narrower than the one ls prints, two columns and no
blocking marker, and its STATE is only ever granted or no. That is why
applicationAudio, bluetooth and automation read no here and on first use under ls:
$ ed permissions refreshPERMISSION STATEcalendar nonotifications grantedaccessibility grantedinputMonitoring grantedfullDisk noscreenRecording grantedapplicationAudio nocamera grantedbluetooth noautomation noRefreshing makes Edith rewrite any of its six permission settings the
real state has moved under, calendar excepted for the reason given above, so
it is the one command here that leaves stored state changed, and what it changes
is only Edith's record of what macOS had already decided.
Where to go next
ed permissions, the rest of this group- All
edcommands