简体   繁体   中英

Apple Script - Mark all files and/or folders within a specific folder as hidden

I am familiar with the terminal command chflags hidden [file path] . But I would like to know how to apply it to all files and folders within a specific folder . I would like to run this command from within applescript using do shell script "..." . How do I do this?

man chflags 开始, -R 选项也将作用于目录的全部内容:

chflags -R hidden <file>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM