Applescript - creating a folder if it doesn't exist
问题 Can someone please point out why this bit of Applescript isn't working? Thanks! on open droppedItems tell application "Finder" set inputFolder to (container of first item of droppedItems) as Unicode text if (exists folder ("converted") of inputFolder) then set outputFolder to (inputFolder & "/converted/") as text else make new folder at inputFolder with properties {name:"converted"} set outputFolder to the result as text end if end tell end 回答1: Here is another approach: mkdir -p will create