[OS X TeX] Spotlight TEX and PDF
pony777 at gmail.com
Wed Mar 18 20:40:43 CET 2009
Following Maarten's suggestions, I created a smart folder and opened
up the saved search in TextWrangler so I could change the raw xml.
Smart folders are really xml files that tell spotlight the query to
execute and where in the file system to execute it. I then changed
the raw query key in the xml file to read:
(kMDItemCreator == "*tex*"c) || (kMDItemContentType == "org.tug.tex")
This found all tex files and tex created PDFs in the folder(s) I
specified when I created the smart folder. Not exactly what
Friedrich specified, but pretty close. Note that trying to further
edit the smart folder via the finder undoes the change in query. If
you change the search criteria in the finder (e.g. if you specify new
folders to look in) you'll have to go back and re-edit the xml.
Hope that helps.
On Mar 18, 2009, at 1:14 PM, Maarten Sneep wrote:
> On 18 mrt 2009, at 15:05, RA Friedrich Vosberg wrote:
>> I want to create a smart folder in Finder.app that includes all
>> TEX files and their respective PDF files. So in human words the
>> search criteria would be:
>> Find all files with the extension TEX and all PDF files with the
>> same file names like the found TEX files and list them both.
>> How should I translate this query to be understandable for the
> I don't know a single query that will match the combination
> requirement. Matched don't work across files, only on single files
> as far as I can see.
> It isn't too hard to find all TeX created pdf files:
> "'Content Creator' (probably in the 'Others…' dialog) contains tex"
> will find all pdf files made by (pdf)(e)TeX.
> Hope this gets you started,
> Maarten----------- Please Consult the Following Before Posting
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives