[OS X TeX] TeXShop 3.18 no longer has icons for .tex files
Herbert Schulz
herbs at wideopenwest.com
Wed Jun 12 09:39:35 EDT 2013
On Jun 12, 2013, at 8:18 AM, "Gary L. Gray" <gray at psu.edu> wrote:
> On Jun 12, 2013, at 9:09 AM, "Gary L. Gray" <gray at psu.edu> wrote:
>
>> By the way, after updating to 10.8.4, rebuilding the launch services database, and restarting, my icons did reappear and continue to display correctly.
>
> So, I just did a little more investigating. Some .tex files on my machine give:
>
> kMDItemContentType = "org.tug.tex"
> kMDItemFSCreatorCode = ""
> kMDItemFSTypeCode = ""
> kMDItemKind = "TeX Document"
>
> some give:
>
> kMDItemContentType = "edu.uo.texshop.tex"
> kMDItemFSCreatorCode = "TeXs"
> kMDItemFSTypeCode = "TEXT"
> kMDItemKind = "TeX File"
>
> and some give:
>
> kMDItemContentType = "com.barebones.bbedit.tex-source"
> kMDItemFSCreatorCode = "TeXs"
> kMDItemFSTypeCode = "TEXT"
> kMDItemKind = "Plain text document"
>
>
> These were the only three files I checked. There could be many more combinations. Yet, they all show the document icon associated with TeXSHop.
>
> Is this the correct behavior?
>
> Gary
Howdy,
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. 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.
Of course, I always make a backup before doing anything like this... just in case!
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list