AppleScript - Expected end of line etc. But found classname (-2741) when building the solution
Hello,
I am new to Mac application development and our existing Mac application contains an AppleScript that handles all the Microsoft Word operations. When i build the solution via XCode in Catalina MacOS that do not have Microsoft Word installed in it, it is throwing a build error as "Expected end of line etc. But found classname (-2741)" .
The error is thrown exactly in the line of code shown below
When i build the same solution in Mojave MacOS that has Microsoft Installed in it then it is working fine without any build errorsand the build is getting succeeded.
Can you please suggest on how to handle the AppleScript such that the solution gets build without any errors irrespective of Microsoft Word installed or not? This is of high priority and needs to be fixed at the earliest.
Thanks and Regards,
Kamal
MacBook