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

Maarten Sneep maarten.sneep at xs4all.nl
Sun Nov 18 10:34:39 EST 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:

/Applications/TeXShop.app/Contents/Library/Spotlight/TeX.mdimporter/ 
Contents/Info.plist

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.

<string>sty</string>
<string>lco</string>

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  
careful.

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?

Maarten



More information about the MacOSX-TeX mailing list