Automator: Change the profile language for current page in OneNote
I would like to use Automator to automate changing the Profile Language for the entire active page in OneNote (by the way it is very annoying when your computer is in one language and you are writing in another, it changes all the time, and the application doesn't offer a solution for that). This is my first script so I am not familiar with Automator. I am getting the following error:
Per my understanding of the message (not very clear), the Automator must be added to the list of Accessibility applications:
which I did. I don't think it is referring to OneNote. I added the file to the touch bar as a quick action, so I can execute it easily. This is the screenshot of my script, I don't know if there is a better way to share it.
the message on the screen is when I try to run it from the Automator.
Any help is appreciated,
Thanks,
David
MacBook Pro 15″, macOS 12.6