2016-02-07 97 views
0

我正尝试在Mac Office 2016 powerpoint中的vba宏中启动shell脚本。VBA Shell函数引发错误53 - 在Mac Office 2016上找不到文件

我已经把下面这行代码:

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

它在2011年的PowerPoint伟大的工作,但在PowerPoint 2016,它抛出我一个错误53:找不到文件

有什么2016年不同做这个工作?

感谢您的Mac上的答案

回答

0

PPT 2016严重 “沙盒”。从它内部,您无法像以前一样在系统的任何位置访问文件。

+0

那么在系统中我可以访问文件? 最初我想使用applescripttask,但不能得到它的工作:http://stackoverflow.com/questions/35200331/applescripttask-throwing-an-error-5-invalid-procedure-call-or-argument –

+0

看看Ron DeBruin的页上这有助于:http://www.rondebruin.nl/mac/mac034.htm –

+0

使用这当然有帮助,但现在当我运行vba shell函数时,它会在我的编辑器(Xcode)中打开我的shell脚本而不是执行脚本。你知道为什么吗? –

0

运行2016年的脚本的唯一方法是使用新的AppleScriptTask命令,但我认为你没有设法让它工作,因此尝试这条路线。

+0

不,我不记得:http://stackoverflow.com/questions/35200331/applescripttask-throwing-an-error-5-invalid-procedure-call-or-argument –