[OS X TeX] Leo's Spotlight doesn't find sty, lco, engine files

Maarten Sneep maarten.sneep at xs4all.nl
Sun Nov 18 16:34:39 CET 2007

On 18-nov-2007, at 15:38, Friedrich Vosberg wrote:

> Am 18.11.2007 um 15.07 schrieb Herbert Schulz:
>> There is a (the?) tex.mdimporter embedded in TeXShop.
> But STY, LCO and ENGINE files won't be found.

.sty files can be added, lco seem to be koma script extensions. This  
means they are tex like and can be indexed. engine files are shell  
scripts, and you'll need to look elsewhere (it is pointless to index  
them, in my opinion).

Now adding .sty files to spotlight requires a bit of editing to a  
specific file:


Open this file in your favorite text editor, and look for  
<key>UTTypeTagSpecification</key>. That field contains a dictionary  
with an array: <key>public.filename-extension</key>. Add the strings  
of the extensions you can add to the list.


Be warned however: the tex importer extracts some specific  
information: the author, the textual content and the title of the  
document. None of these items have a meaningful value in sty or lco  
files. I don't think that the importer will choke on them, but be  

What is it that you would want to find in sty and lco files that make  
it worthwhile to add them to the spotlight index?


More information about the macostex-archives mailing list