[OS X TeX] TeXShop 3.18 no longer has icons for .tex files

Gary L. Gray gray at psu.edu
Fri Jun 14 12:18:42 EDT 2013


On Jun 13, 2013, at 9:41 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:

> On Jun 12, 2013, at 9:00 PM, Gary L. Gray <gray at psu.edu> wrote:
> 
>> On Jun 12, 2013, at 9:39 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>> 
>>> The more I see the more confused I get...
>>> 
>>> Is there any difference about when these documents were last edited? Now that I look I see that the original item had it's kMDItemContentCreationDate in 2010 so org.tug.tex would be correct.
>>> 
>>> When TeXShop re-added the internal TeX.mdimporter (3.18?) I first removed the old one I had manually placed in ~/Library/Spotlight. Then checked that TeXshop's TeX.mdimporter was being used by running `mdimport -L` and making sure the it is on the list.
>> 
>> Check.
>> 
>>> I then forced a complete rebuild of the meta-data database (this can take some time) by going to System Preferences->Spotlight->Privacy, adding the root drive (Macintosh HD?) to the list and approving the change (this removes the old database) and then removing it from the list and approving the change again. I'm sure there is a way to do it using mdimport but that's what I did.
>> 
>> Done.
>> 
>>> Of course, I always make a backup before doing anything like this... just in case!
>> 
>> Nah.
>> 
>> I will report back any interesting findings -- assume I can find any.
>> 
>> Gary
>> 
> 
> Howdy,
> 
> I forgot to say how you tell the meta-data database is complete! Open up Spotlight (Cmd-Space by default or click on the magnifying glass) and, if it shows the normal entry line the database has been rebuilt.

I knew that. :-)

I followed Herb's suggestion and let my Mac rebuild its Spotlight index. Now that I have done that, I ran mdls on a number of my .tex files from various epochs in my life (some from the early 90s). They now all show:

	kMDItemContentType             = "edu.uo.texshop.tex"

I see the following creator codes:

	kMDItemFSCreatorCode           = "*TEX"
	kMDItemFSCreatorCode           = ""
	kMDItemFSCreatorCode           = "TeXs"

and I see two type codes:

	kMDItemFSTypeCode              = ""
	kMDItemFSTypeCode              = "TEXT"

The first creator code is from Textures, the second is a file created by a script on a file server and then svn'ed over to my machine, and the third is TeXShop, so they all make sense (at least to me). The file created by the script also explains the blank type code.

I think this is all good, no?

Gary



More information about the MacOSX-TeX mailing list