[texshop] Modified Experimental 4.33

Bruno Voisin bvoisin at icloud.com
Mon Aug 26 02:17:19 CEST 2019


> Le 25 août 2019 à 17:45, Herbert Schulz <herbs at wideopenwest.com> a écrit :
> 
> That has always been a mystery. Why Apple doesn't simply use the icon supplied by the application that is set to open the document when double-clicked is beyond me. What does `mdls` tell you when applied to one of your .tex files?

Well, it's all about TeXShop:

% mdls -name kMDItemContentType -name kMDItemContentTypeTree -name kMDItemKind near-field-paper-part-1.tex
kMDItemContentType     = "edu.uo.texshop.tex"
kMDItemContentTypeTree = (
    "edu.uo.texshop.tex",
    "public.text",
    "public.data",
    "public.item",
    "public.content",
    "public.plain-text",
    "org.tug.tex"
)
kMDItemKind            = "TeX File"

What's even weirder is that the file seems to have a com.apple.LaunchServices.OpenWith attribute, and this also points to TeXShop:

% xattr -p -l com.apple.LaunchServices.OpenWith near-field-paper-part-1.tex
com.apple.LaunchServices.OpenWith:
00000000  62 70 6C 69 73 74 30 30 D3 01 02 03 04 05 06 57  |bplist00.......W|
00000010  76 65 72 73 69 6F 6E 54 70 61 74 68 5F 10 10 62  |versionTpath_..b|
00000020  75 6E 64 6C 65 69 64 65 6E 74 69 66 69 65 72 10  |undleidentifier.|
00000030  00 5F 10 1D 2F 41 70 70 6C 69 63 61 74 69 6F 6E  |._../Application|
00000040  73 2F 54 65 58 2F 54 65 58 53 68 6F 70 2E 61 70  |s/TeX/TeXShop.ap|
00000050  70 57 54 65 58 53 68 6F 70 08 0F 17 1C 2F 31 51  |pWTeXShop..../1Q|
00000060  00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 07  |................|
00000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 59  |...............Y|
00000080

Despite that, the icon was BBEdit.

To be sure, I've reinitialized the Launch Services database using

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

rebooting afterwards for good measure.

After that, .tex files have switched to the TeXShop icon. For how long?

> I've zipped up BBEdit on my system (too bad, I really love that Editor) and now use the beautiful Cot editor (free from the App Store) and VisualDiffer for a nice GUI interface to `diff`.

It would be hard for me to ditch BBEdit. I first heard about it in the early 1990's, at the same time as Alpha, then used the freeware BBEdit Lite for some time and switched to the full shareware BBEdit in 1993. I have kept purchasing new versions more or less continuously ever since.

It's one of the few Mac OS applications of that time that has been continuously developed, fully embracing Carbon then Cocoa, 32-bit then 64-bit, always playing by Apple's guidelines regarding programming and user interface, however inconsistent the evolution of these guidelines may have been at times.

I'm mostly using its file and directory comparison, its single- and multi-file search, and its "zap gremlins" (to get rid of invisible non-ASCII characters which sometimes result in TeX warnings or errors). Its one-click EOL and encoding conversions too.

Bruno




More information about the texshop mailing list