I want to access "Microsoft word" from AppleScript but while executing the AppleScript from visual studio for macOs Catalina (version - 10.15) it gives error "Not authorised to send apple events to Microsoft word". AppleScript works from script editor but not from visual studio. I have explored a lot find some solutions like
Goto Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab and check the "Microsoft Word" checkbox under Visual studio.
But on my machines privacy tab Microsoft Word is not available under Visual studio. So how we can add "Microsoft word" under "Visual Studio" in Settings -> Security & Privacy -> Privacy -> Automation -> Privacy tab. or how we can deal with the error "Not authorised to send apple events to Microsoft word".
Your help will be most appreciated.
Looking forward your response.