我一直在尝试制作一个AppleScript应用程序,它应该能够播放“白鲸”的音频文件,然后自毁,但是每次我运行它时,这个应用程序都说它无法获得“应用程序”的“查找”文件。
set thePath to POSIX path of (path to me as text)
tell application "Finder" to delete file thePath这就是上面的脚本
do shell script "/bin/rm " & quoted form of thePath
我也尝试过用它来代替tell应用程序,但是它也没有工作。有人能告诉我我做错了什么,并告诉我正确的方法吗?
发布于 2022-01-24 15:57:26
你把苹果和橘子弄糊涂了。以下内容破坏了在其中发生的applet:
tell application "Finder" to delete (path to me)https://stackoverflow.com/questions/70836210
复制相似问题