I’m a bit frustrated with Libre Office Impress. I have an image of a button on a slide.
If I right click and select Interaction, select Run Program, browse to the path of the script (755) and select Okay. When I click I get the editor with the script. Not the desired outcome.
If I right click and select Interaction, select Run Macro, browse to the path of the Macro and select Okay. I get this:
vnd.sun.star.script:Standard.RunScript.Test?language=Basic&location=document
Sub Test()
wStyle = 0
Shell("/home/me/bin/run_test.sh", wStyle)
End Sub
Click on the image and it runs the script run_test.sh. The script will properly run.
I set up a second image with Interaction but this time I try to pass arguments to the Macro. I get this
vnd.sun.star.script:Standard.RunScript.execProg?language=Basic&location=document&prog=my_prog.bat&arg1=foo
Sub execProg(urlStr)
Shell("/home/me/bin/run_script.sh", 0, urlStr)
End Sub
When I click I get the infamous: “wrong number of parameters”
When I do an I’net search on the topic I don’t get any good results. I’ve tried the various ways but I can’t get Run Program to work and I can’t get Run Macro & pass arguments. I do get Run Macro with no arguments to work but that means each interaction requires its own script. Does anyone have any suggestions? RTM seems to point no where useful.

It works when I’m preparing the page (and I’ve turned of the design mode).