AppleScriptTask throwing an error 5 - invalid procedure call or argument

后端 未结 2 1660
离开以前
离开以前 2021-01-15 04:34

I\'m facing a problem on Mac 2016 Powerpoint. In my VBA module I need to run an applescript. As we cannot use MacScript anymore I followed RonDeBruin\'s explanation to use A

相关标签:
2条回答
  • 2021-01-15 05:12

    I know this is an old thread but I was receiving this error and the issue was the location of my AppleScript.

    I originally had it under /Library/Application Scripts/com.microsoft.Excel and I should have had it under my Library /Users/username/Library/Application Scripts/com.microsoft.Excel

    0 讨论(0)
  • 2021-01-15 05:14

    I did get that error originally but now it works for me with your stated folder location but only after I rebooted my Mac and tried the same script with Excel:mac 2016 (I'm not sure which action is responsible for the success). Interestingly, I thought that since Microsoft is very protective of their trademarks that I originally thought that the folder name needed to be "com.microsoft.PowerPoint" but that did't work.

    0 讨论(0)
提交回复
热议问题