0
我從AppleScript創建了一個應用程序。以下是代碼,應用程序「SomeApp.app」無法打開?
tell application "Terminal"
activate
set shell to do script "clear" in window 1
do script "python ~/Desktop/Prog/Prog.py" in shell
end tell
從應用程序文件夾運行時,出現錯誤消息The application Prog can’t be opened
。但它在其他文件夾中正常工作。即使在「應用程序」文件夾中的子文件夾中工作正常只適用於Applications文件夾。
如何解決這一問題?