[OS X TeX] tex files and smart folders

Maarten Sneep maarten.sneep at xs4all.nl
Sat Jul 28 01:02:18 CEST 2007

On Jul 28, 2007, at 00:27, Adam R. Maxwell wrote:

> Try changing it to <string>(kMDItemDisplayName = "*.tex"cd)  
> && (kMDItemContentType != com.apple.mail.emlx) &&  
> (kMDItemContentType != public.vcard)</string>.  Earlier versions of  
> TeXShop probably don't export a kMDItemKind of 'TeX Document'.

Isn't it better (more robust) to use kMDItemFSName instead of  
kMDItemDisplayName? I believe that if the preferences are set to hide  
extensions, the kMDItemDisplayName will not include .tex, and thus  
never give a result here. kMDItemFSName is the name as used on disk,  
and always includes the extension.


------------------------- 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 macostex-archives mailing list