[OS X TeX] status of Spotlight indexing of .tex files?

Norm Gall gall at spookyhill.net
Wed Dec 7 18:23:22 CET 2005


On 7-Dec-05, at 10:13 AM, Gary L. Gray wrote:

> On Dec 7, 2005, at 12:07 PM, Norm Gall wrote:

>>
>> This is exactly right. TeXShop write TEXT files and so those files  
>> get indexed.
>>
>> However, if you are using any of the emacsen, they do _not_ get  
>> written as TEXT files and as such require an importer. I have one,  
>> but it is linked to my yaced Carbon Emacs.
>>
>> I am going to make my importer good for any .tex, .latex.  
>> and .texi file before Xmas.
>
> I don't understand this -- my TeXShop files are not being indexed.  
> Only the resulting PDFs are being indexed by Spotlight.

Hmmm... I _could_ be wrong, but I seem to clearly recall that it did.

My apologies if I am wrong. I can't check now becase I have my  
importer installed and it is importing .tex files.

Without a .tex extension, a TeXShop files gets imported by the  
RichText importer:

[gall at ludwig Desktop] $ mdimport -d3 foo.foo
2005-12-07 10:22:30.440 mdimport[12685] Attributes of file '/Users/ 
gall/Desktop/foo.foo' before import: {
     "_kMDItemImporterCrashed" = <null>;
     "com_apple_metadata_modtime" = 155668811;
     kMDItemContentCreationDate = 2005-12-07 10:20:11 -0700;
     kMDItemContentModificationDate = 2005-12-07 10:20:11 -0700;
     kMDItemContentType = "com.apple.traditional-mac-plain-text";
     kMDItemContentTypeTree = (
         "com.apple.traditional-mac-plain-text",
         "public.plain-text",
         "public.text",
         "public.data",
         "public.item",
         "public.content"
     );
     kMDItemDisplayName = {"" = "foo.foo"; };
     kMDItemKind = {"" = tex; };
}
2005-12-07 10:22:30.441 mdimport[12685] Import '/Users/gall/Desktop/ 
foo.foo' type 'com.apple.traditional-mac-plain-text' using 'file:// 
localhost/System/Library/Spotlight/RichText.mdimporter/'
2005-12-07 10:22:30.493 mdimport[12685] Sending attributes of '/Users/ 
gall/Desktop/foo.foo' to server.  Attributes: '{
     "_kMDItemImporterCrashed" = <null>;
     "com_apple_metadata_modtime" = 155668811;
     kMDItemAuthors = <null>;
     kMDItemComment = <null>;
     kMDItemContentCreationDate = 2005-12-07 10:20:11 -0700;
     kMDItemContentModificationDate = 2005-12-07 10:20:11 -0700;
     kMDItemContentType = "com.apple.traditional-mac-plain-text";
     kMDItemContentTypeTree = (
         "com.apple.traditional-mac-plain-text",
         "public.plain-text",
         "public.text",
         "public.data",
         "public.item",
         "public.content"
     );
     kMDItemCopyright = <null>;
     kMDItemDisplayName = {"" = "foo.foo"; };
     kMDItemKeywords = <null>;
     kMDItemKind = {"" = tex; };
     kMDItemOrganizations = <null>;
     kMDItemSubject = <null>;
     kMDItemTextContent = " this is foo";
     kMDItemTitle = <null>;
}'

-- 
"No man was ever taken to hell by a woman unless he already had a
ticket in his pocket, or at  least had been fooling around with  
timetables."
-- Archie Goodwin  

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list