Hide specific filetypes in finder SWIM works on a lot of different Ableton Live projects and has more than 25,000 '.asd'-files on their computer. On macOS dot-files are hidden by default in finder, does anyone know if it's possible to hide files in finder depending on their extension/filetype?
With a huge help from nohillside, here's a quick fix:

Remember to test run on a test folder.

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


First command uses &gt;&gt; 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.