带有获取每个文件循环的Applescript失败
我想在具有多个嵌套文件夹层次结构的磁盘上的所有具有两个特定扩展名的文件上运行脚本。当我选择一个带有较少子文件夹的文件夹时,我的脚本运行良好,但我希望在具有上千个文件夹的整个档案中运行它。AppleScript永久占用get所有文件,然后退出而不返回任何内容,并且在获取文件后不执行任何操作。没有超时消息,没有错误消息。并且Finder变得无响应(并且在脚本退出后仍然停留)。 set myFolder to choose folder with prompt "Choose a folder:" tell application "Finder" try set eafFiles to (every file in entire contents of myFolder whose name ends with ".eaf") as alias list on error try set eafFiles to ((every file in entire contents of myFolder whose name ends with …