【问题标题】:The application “SomeApp.app” can’t be opened?应用程序“SomeApp.app”打不开?
【发布时间】:2016-09-22 21:34:18
【问题描述】:

我从 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 文件夹的子文件夹中也能正常工作。只是不能在 Applications 文件夹中工作。

如何解决这个问题?

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-12-18
      • 2016-11-15
      • 1970-01-01
      • 2021-02-04
      • 1970-01-01
      • 1970-01-01
      • 2013-05-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多