I run LaTeX under OSX, and I would like to attempt to hide all of the LaTeX helper files from the finder after compiling. It strikes me that the simplest thing to do is not to move them or delete them or try to package them together, but just to set the BSD "hidden" flag on each file. Right now I end up just manually running a script like:
chflags hidden *.nav *.out *.log *.gz *.snm *.toc *.aux *.bbl *.blg"
in each directory after compiling a new file.
What I would like to do is to simply set this flag immediately after a compile, via the bash shell. I'm assuming that this can just be included in the setup for the pdfTeX command, but I can't figure out the proper way of referencing it. Ideally, I'd like this to work in TeXShop or in TeXStudio, but if someone has a similar thing working for different front end, I could at least try to port that.