2017-07-17 59 views
0

的錯誤是 「桌面:_XNB_Extract:」怎樣才能創建子文件夾[AppleScript的]

tell application "Finder" 
    set x to path to desktop 
    make new folder at x with properties {name:"_XNB_Extract"} 
    set y to path to "desktop:_XNB_Extract:" 
    make new folder at y with properties {name:"Packed"} 
end tell 
+0

怎麼樣'做shell腳本 「的mkdir -p $ HOME /桌面/ _XNB_Extract /盒裝」'' –

+0

沒錯,THX的快速答案:d – Nanogamer7

回答

0

易香草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 

你甚至可以忽略at desktop因爲桌面文件夾是Finder的根目錄文件夾。