rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
26.04k stars 786 forks source link

Rectangle not working seems due to accessibility element not given #1461

Open zhast460 opened 2 months ago

zhast460 commented 2 months ago

macOS version: 14.6.1 (23G93) Rectangle version: v0.82(88) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): plenty of: Unable to obtain the accessibility element with the specified attribute at mouse location

However the accessibility is given in the system settings

image
rxhanson commented 2 months ago

Indeed, this points to the accessibility permissions being out of sync. To get it back in sync

  1. Close Rectangle if it's running
  2. Here in System Settings*, first disable Rectangle, then remove it with the minus button. (it's important to do both of those steps in that order)
  3. Launch Rectangle and enable settings for it as prompted.

If you're handy with the Terminal you can execute this terminal command instead of step 2:

tccutil reset All com.knollsoft.Rectangle

If it's still out of sync, you might have to logout/login.

* System Settings > Privacy & Security > Accessibility