Andy Matuschak@andy_matuschakReplying to @craigmodI've tried to get this via accessibility / AppleScript APIs but it seems not to be exposed through them. I think you'd have to do something like a SIMBL plugin. :(8:50 PM · Apr 15, 2021·Twitter Web App1 Like
Andy Matuschak@andy_matuschak·Apr 15, 2021OK, this is super silly, but you could do a binary search with: func accessibilityRange(for point: NSPoint) -> NSRange https://developer.apple.com/documentation/appkit/nsaccessibilityprotocol/1531615-accessibilityrange…1