Applescript to make new folder

后端 未结 5 1062
死守一世寂寞
死守一世寂寞 2021-01-16 03:10

I Want to make a new Folder command in apple script

Why dosent this script work?

tell application \"Finder\"
activate
end tell
tell application \"Sys         


        
5条回答
  •  自闭症患者
    2021-01-16 03:33

    You can do it more directly with AppleScript:

    tell application "Finder"
        set p to path to desktop -- Or whatever path you want
        make new folder at p with properties {name:"New Folder"}
    end tell
    

提交回复
热议问题