Simplify this script by using package parsing routines from texMate.py Cache the documentation index for 90 days. or until ~/Library/Caches/TextMate/latexdocindex is removed. This dramatically speeds up the documentation command. Changed: U trunk/Bundles/Latex.tmbundle/Support/bin/PyTeXdoc.py