file – Hide specific filetypes in finder

Spread the love


With a huge help from nohillside, here's a quick fix:


Remember to test run on a test folder.

find ~/Documents -name '*.asd' >> ~/Desktop/logHiddenASDfiles.txt
find ~/Documents -name '*.asd' -exec chflags hidden '{}' ;

First command uses >> to not to override existing logs, it always appends content to the file.

To undo the hidden flags,

find ~/Documents -name '*.asd' -exec chflags nohidden '{}' ;

The log file might not be of immediate use since you might move or delete some files. If you use the older file for unhiding the files, some of them might throw errors.

Author: Subham

Leave a Reply

Your email address will not be published. Required fields are marked *