Share via

AppleScriptTask throwing an error 5 - invalid procedure call or argument

Anonymous
2016-02-04T11:55:09+00:00

Hi there,

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 AppleScriptTask. My Applescript is working fine on his own but when I try to call it like this :

  AppleScriptTask("hello.scpt", "myhandler", "hello")

With in my apple script

    on myhandler(paramString)

say paramString

End myhandler

It gives me an error 5 - Invalid procedure call or argument

my script is placed in Library/Application Scripts/com.microsoft.Powerpoint is this path alright?

Thank you for your help

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2016-02-05T10:42:08+00:00

    I did not download any script. I just followed the method described there to use an applescript in vba on office 2016.

    This script is perfectly working in script editor. I'am assigning the return value but i get this error while i'm doing everything as i am supposed to. 

    Worse, i've tried on a friend's Mac and it works

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-02-05T10:18:55+00:00

    From where/which website did you download the RonDeBruin's script?

    Was it related to PowerPoint or any other application?

    Could you provide the link from where you got the script?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-02-05T00:45:50+00:00

    Anyone, Please?

    Was this answer helpful?

    0 comments No comments