Applescript to make new folder

后端 未结 5 960
死守一世寂寞
死守一世寂寞 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:30

    NOTE: This can fail for two reasons;
    (1) '~' trapped in singlequote won't parse.
    (2) space in '/New Folder/' will break the path.

    do shell script "mkdir -p '~/Desktop/New Folder/Bleep/Bloop'"
    

    SOLVED:

    do shell script "mkdir -p ~/Desktop/" & quoted form of "New Folder/Bleep/Bloop" 
    

提交回复
热议问题