[OS X TeX] Re: Hide temporary files created by TeXShop

Matthew Hills hills_tex at tina.stanford.edu
Mon Sep 17 19:42:37 EDT 2007

The key is that you don't really want to get *rid* of them (they are  
there for a reason!)
You just want to hide them.   The approach I'd recommend is to  
install the Developer tools
and then use the "SetFile" command to toggle the invisibility bit.   
You'll need to quit and restart the finder for the changes to take  
effect.  However, this should only need to be run when you first want  
to hide the files (you don't
need to re-hide everything after every compile)

Below is a shell script that I've used for this.  (you can do this  
from applescript or a TeXShop command, too)

# cleanup_dir
# This function makes the apple HFS+ directory display clean
# (makes all aux, bbl, texshop files invisible)

     tell application "Finder" to quit
   end try

echo "Hiding the following files:"
foreach file ( *.aux *.bbl *.texshop *.log *.blg )
    echo "   " $file
    /Developer/Tools/SetFile -a V $file

sleep 1

     tell application "Finder" to launch
   end try

echo "Done."
exit 0

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list