MacOS: AXUIElementSetAttribute not working on Word

Developer The Name Technology 0 Reputation points
2023-07-05T03:17:00.34+00:00

I am trying to make a spell checker app that can replace text on Word for MacOS.

There is a function exposed for the accessibility feature which is AXUIElementSetAttributeValue

It doesn't work on Word although the function returns a success state. No errors just the text doesn't change. Other apps like Safari, Notes, and Calendar work just fine.

On Accessibility Inspector it says:

Inspected Element: Page 1 content, disabled, <content...>

Screenshot 2023-07-04 at 2.27.19 PM

How to enable text edit accessibility for Word on MacOS?

Microsoft 365 and Office | Install, redeem, activate | For business | MacOS
Microsoft 365 and Office | Word | For business | Windows
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.