Run-Time Error 5

Hello!
My report ID is 1702295732.
I'm running macOS Catalina 10.15.7. MS Word for Mac 16.44.
I've reinstalled Zotero and MS Word, but I keep getting the Run-Time Error '5' message "Invalid Procedure Call or Argument." I've deleted the file in the startup folder and reinstalled that as well, to no avail. Any help would be appreciated.
  • See this thread https://forums.zotero.org/discussion/86443/ms-word-plugin-again

    You will need to debug why osascript/AppleScript is not working.
  • Hi! Yes, I followed the instructions on that forum post.

    Everything is the same for me, except when I do the following step, the answer is yes.

    "If you open the Terminal and paste
    osascript -e "display dialog \"test\""

    into it and press Enter do you get a dialog that says "test"?"
  • This is the line that the debug lands on:

    MacScript "try" & nl$ & "do shell script """ & pipeLocation$ & "; if [ -e \""$PIPE\"" ]; then echo '" & wordVersion$ & " " & func & " "" & POSIX path of (path to current application) & ""' > \""$PIPE\""; else exit 1; fi;""" & nl$ & "on error" & nl$ & "display alert ""Word could not communicate with Zotero. Please ensure that Zotero is open and try again."" as critical" & nl$ & "end try"
  • Unfortunately I don't have much else to say to you except that Word is refusing to run AppleScript on your machine which is likely due to some misconfiguration of Word or macOS. In the past the only way users have reported to have resolved this issue was by reinstalling macOS completely.
  • Hi there, I'm just writing to say that I have reinstalled macOS (and even updated to Big Sur), and it did not resolve the problem. My entire research library is on Zotero, and I have found it invaluable in the past. I would be so bummed if I could never use it again. Is there anything else I can try?
  • Sorry to hear that, but unfortunately this is an issue beyond the scope of Zotero and I'm out of ideas on how to debug this since we've never been able to reproduce anything like this ourselves. The error is technically within the scope of Microsoft Word and any Apple Script ran within Word would fail related to Zotero or not so Microsoft support might be able to help you.
Sign In or Register to comment.