[OS X TeX] .sty files listed as Kind STY and Asian characters

Herbert Schulz herbs at wideopenwest.com
Tue Sep 29 17:34:22 CEST 2020

> On Sep 29, 2020, at 9:59 AM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> On 29 Sep2020, at 1:09 AM, Adam R. Maxwell via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>>> On Sep 28, 2020, at 11:59 , Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>>> I’m seeding that (on .cls, too, not just .sty) in any Finder window I open anywhere there is such a file. For example, in subfolders of my own Documents and in every subfolder of  /usr/local/texlive/2020/texmf-dist/tex/latex that I open in Finder.
>> The first step is to run mdls on a .sty file in Terminal and see what it gives you for kMDItemKind and kMDItemContentType (I think those are the relevant ones).
>> Once you find the kMDItemContentType, you'll probably end up having to inspect the output of lsregister to see what application or plugin is defining it. I'd guess that whatever is defining it has a localization problem with the way types are defined. On Mojave the command is:
>> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump 
> I ran mdls on both memhfixc.sty and memoir.cls in /usr/local/texlive/2020/texmf-dist/tex/latex/memoir. Those are two from among _all_ .sty and .cls files that now show the two Japanese (?) characters in the Kind column of Finder list view. Output included:
> 		mdls memhfixc.sty
> 	kMDItemKind = "sty"
> 	kMDItemContentType = “org.tug.sty"
> 		mdls memoir.cls
> 	kMDItemKind = “cls"
> 	kMDItemContentType = "org.tug.cls"
> I tried next "lsregister - dump”, but the output is huge, and I have no idea what to look for or do with the output. I tried piping to, e.g., “grep org.tug.sty” but get so many lines and no hint of what to do with that.
> ---
> Murray Eisenberg			murrayeisenberg at gmail.com
> 503 King Farm Blvd #101	Home (240)-246-7240
> Rockville, MD 20850-6667	Mobile (413)-427-5334


The Kind column shows what Murray's shows for a .sty file of mine. Running mdls on that file gives 

kMDItemContentType                 = "org.tug.sty"


kMDItemKind                        = "sty"

so I'm a bit mystified why Kind is that way. I believe the content type of "org.tug.sty" is set by TeXShop.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list.