应用程序“SomeApp.app”无法打开?

时间:2016-09-22 21:34:18

标签: macos python-2.7 shell applescript runtime-error

我已经从AppleScript创建了一个应用程序。这是代码,

tell application "Terminal"
    activate
    set shell to do script "clear" in window 1
    do script "python ~/Desktop/Prog/Prog.py" in shell
end tell

从Applications文件夹运行时收到错误消息The application Prog can’t be opened。但是它在其他文件夹中工作正常。甚至可以在Applications文件夹中的子文件夹中正常工作。仅在“应用程序”文件夹中不起作用。

如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

尝试:term> chmod uog+x SomeApp.app/Contents/MacOS/applet

相关问题