0

I am trying to launch a shell script with in a vba macro on Mac Office 2016 powerpoint.

I've put this line of code :

Shell "Macintosh HD:Library:Application Scripts:com.microsoft.Powerpoint:test.sh"

It's working great in powerpoint 2011 but in powerpoint 2016 it throws me an error 53 : file not found

Is there anything different on 2016 to make this work?

Thanks for your answers

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
J Moda
  • 31
  • 5

2 Answers2

0

PPT 2016 on Mac is severely "sandboxed". From within it, you can't access files just anywhere on the system as you used to be able to do.

Steve Rindsberg
  • 14,442
  • 1
  • 29
  • 34
  • So where in the system can i access files? Initially i wanted to use applescripttask but cannot get it to work : http://stackoverflow.com/questions/35200331/applescripttask-throwing-an-error-5-invalid-procedure-call-or-argument – J Moda Feb 07 '16 at 11:47
  • See if Ron DeBruin's page on this helps: http://www.rondebruin.nl/mac/mac034.htm – Steve Rindsberg Feb 07 '16 at 16:51
  • Using this certainly helped but now When i run the vba shell function it opens me the shell script in my editor (Xcode) instead of executing the script. Do you know why? – J Moda Feb 07 '16 at 17:40
0

The only way to run a script in Offic 2016 is to use the new AppleScriptTask command but I think you've not managed to get that to work hence trying this route.

Jamie Garroch - MVP
  • 2,839
  • 2
  • 16
  • 24
  • No i didn't, remember : http://stackoverflow.com/questions/35200331/applescripttask-throwing-an-error-5-invalid-procedure-call-or-argument – J Moda Feb 07 '16 at 11:47