如何创建子文件夹[Applescript]

如何创建子文件夹[Applescript],applescript,Applescript,错误出现在“桌面:\u XNB\u解压缩:” 简易香草AppleScript解决方案: tell application "Finder" set extractFolder to make new folder at desktop with properties {name:"_XNB_Extract"} make new folder at extractFolder with properties {name:"Packed"} end tell 您甚至可以省略桌面上的

错误出现在“桌面:\u XNB\u解压缩:”


简易香草AppleScript解决方案:

tell application "Finder"
    set extractFolder to make new folder at desktop with properties {name:"_XNB_Extract"}
    make new folder at extractFolder with properties {name:"Packed"}
end tell

您甚至可以省略桌面上的
,因为桌面文件夹是查找程序的根文件夹。

如何
执行shell脚本“mkdir-p$HOME/desktop/\u XNB\u Extract/Packed”
是的,快速回答是:D
tell application "Finder"
    set extractFolder to make new folder at desktop with properties {name:"_XNB_Extract"}
    make new folder at extractFolder with properties {name:"Packed"}
end tell