Not Allowed to Send Keystrokes on Mac? Re-Add the App
System Events says your workflow or script is not allowed to send keystrokes? Read the app name in the error, turn its Accessibility switch off and on, or remove and re-add it.

Pick your device to see every fix in one place.
System Events says your workflow or script is not allowed to send keystrokes? Read the app name in the error, turn its Accessibility switch off and on, or remove and re-add it.
Resetting your Mac password with your Apple Account stops with There was an error communicating with iCloud? Turn off Advanced Data Protection on your iPhone, then run resetpassword again.
Exchange Password Required keeps popping up on your Mac? It comes from Internet Accounts. Turn off the account’s features, take it offline in Mail, or remove and re-add it.
createinstallmedia stuck on Making disk bootable for an hour? Turn off Spotlight indexing on the installer volume with mdutil, allow Terminal’s prompt, or try another USB stick.
Apple Pay in Safari asks you to double-click Touch ID, and pressing twice locks your Mac? Turn Use Touch ID for Apple Pay off and on. Only one user per Mac can pay with Touch ID.
Right click in the corner of your MacBook trackpad stops opening the menu? Turn off Zoom in or out in Trackpad settings, or switch to a two-finger click. Control-click works meanwhile.
Reinstalling macOS from Recovery and the disk is refused with com.apple.BuildInfo.preflight.error error 10? The disk was Mac OS Extended. Erase it as APFS with GUID Partition Map.
The Desktop and Documents Folders switch in iCloud slides back off? Turn off OneDrive’s folder backup, remove aliases, rename old folders in iCloud Drive, or rename your Mac.
Your Mac’s screen flashes white even with Flash the screen off? Owners traced it to an alert sound macOS could not play. Fix the alert output or restart coreaudiod.
Internet Sharing or its options grayed out on your Mac? On Ventura, set the ports with sharing off; from Sonoma on, turn it on, then Configure. 802.1X and work profiles block it.