Applescript to make new folder

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

    I don't know if running bash commands within AppleScript is cheating, but you can also do:

    do shell script "mkdir '~/Desktop/New Folder'"  
    

    Which is useful when you need to create sub folders on-the-fly when they don't exist yet:

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

提交回复
热议问题