Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

macOS Ventura: finder's file preview less powerful?

Dear community,


is it true that the recent update has decreased coverage of finder's file preview function (hit space bar in finder on any file)? For instance, I noticed this behaviour for ".tex" files - see attached screenshot.


This would really be a shame since this was an amazing feature. Any ideas?


Best,

Seb


MacBook Pro 13″, macOS 13.0

Posted on Oct 31, 2022 7:50 AM

Reply
Question marked as Best reply

Posted on Nov 13, 2022 8:12 AM

a.jaffe wrote:

I am seeing the same behaviour. (See also here.)

I think there is some confusion in this thread about preview vs quicklook.

Preview and QuickLook are the same thing. I can understand how people who haven't dealt with these technologies might be confused. It is extremely confusing.


There are two parts to QuickLook: icon thumbnails and previews


What you (and the Finder) call a "preview" (Finder > View > Show Preview) is actually the icon thumbnail.

What you (and the Finder) call a "quicklook" (Finder > {select file} > {press spacebar}) is the preview


This difference is important because, internally, a quicklook plugin can choose to implement only one of these features. For example, in my own app, I implement the preview to show an EtreCheck report in a Window. But the report is just a wall of text. I don't implement the thumbnail icon. In this specific example, only the full-size preview has any meaning. A TeX file is very similar in concept. I expect anyone who has written a QuickLook plugin for a TeX file would make a similar decision. You just can't represent a 12 page paper full of math equations in a single icon. But you can do it in a scrolling preview.


But wait, we aren't done yet. It is even more complicated.


As of macOS 10.13, Apple started rolling out a new Quicklook architecture. As I discovered just the other day, Apple didn't actually finish this rollout until Ventura. For each of those types of previews, there are two ways of implementing them - a complicated way and an easier, but perhaps more complicated, way. This is true of both the old and new versions. In the "new and improved" version, only the view-based, "complicated" way is supported. The easy method is not supported until macOS 12. Alas, that method doesn't actually work properly until Ventura.


So that is potentially 8 different ways of drawing a preview, in potentially 5 different contexts (which I didn't mention), all behaving differently over 8 different operating systems. Confused yet?


PS: I'm not sure how much the old "qlmanage" tool even works anymore. The new method is, of course, more complicated. Use the following command to dump all quicklook information:


pluginkit -mvvvv -p com.apple.quicklook.preview --raw


Use this command to see information about a specific UTI - not, not that UTI, I mean the problematic one - a Uniform Type Identifier. (It would sure be nice if some antibiotics and cranberry juice could clear up this mess.)


pluginkit -mvvvv -p com.apple.quicklook.preview -i com.etresoft.EPSView.EPSViewQuickLook --raw


Note that the -i <identifier> flag identifies the bundle identifier of the quicklook plugin inside an app's bundle. This example is using my EPSView tool that I wrote when Monterey removed quicklook previews from EPS files. (Ventura removed support for all EPS and Postscript files in Preview (the app) but not the lower-level APIs. Did I mention that this stuff was confusing?) This command is useful to identifying what an individual plugin is doing. I don't know any method for identifying which plugin should be used, or could be used, other than manually searching the output of the previous command.

Preview is working fine for TeX/LaTeX files -- it is quicklook
that has stopped working correctly. Indeed, pressing the spacebar on a *.tex file show the correct preview icon but the message
The extension com.apple.tips.TipsAppQuicklook-macOS does not implement file previews

I think that message is a side effect of the TextMate app. My explanation above on the details of how all this works is woefully incomplete. I didn't mention how individual apps can import and export UTI->extension->MIME type mappings. I'm guessing that TextMate exported a UTI that matched the TeX files and made it a child of the "public.text" UTI (which is appropriate). However, since TextMate didn't have the appropriate plugins, the operating system is now a bit confused.

Any more nuanced ideas?

You want me to get more nuanced? Sorry, but here is a 5000 character limit on replies in the Apple Support Community and I'm already over 4000.


You just need apps that have better support for TeX files. That file format was ancient when I was in grad school back in the 1990s. The output from those tools is horribly ugly. I tried to replicate what you are seeing. I actually couldn't get any quicklook or preview to work, but I did reproduce that strange "tips" message. You must have more TeX apps than I could find. Texstudio is ancient and isn't even signed. It doesn't even work without another 5 GB (!) download of MacTex. I was prescient enough to save my /usr/local directory before MacTex trashed it.


I will agree that Apple has made this unbelievably difficult. I'm not exaggerating when I say I've really skimmed the issue here. You will need to contact the developer(s) of your favourite LaTeX tools and ask them to write a new-style QuickLook preview for their apps.

51 replies

Dec 13, 2022 6:05 PM in response to Pipe_luque

So you are right that it used to work in previous version of macOS, but it clearly does not work anymore in Ventura.

Then you need to install an app that can handle .Tex and provides a quick look rendering plugin (or whatever it is called). I found BBEdit does provide Quick Look with the needed information to display the markup. I believe I stated this on the first page of this post, and it is marked as the most correct answer.


You don’t seem to understand why it no longer works, and seem unwilling to accept the reason.

Dec 13, 2022 11:10 PM in response to Barney-15E

So, I don’t think the “Open with BBEdit” button means that BBEdit is actually the provider of the appropriate quicklook extension — the BBEdit developers have explicitly told me that they don’t provide one!


And, for what it’s worth, I’ve had BBEdit installed the whole time I was having the “TipsAppQuicklook” problem with *.tex files.


As mentioned above, the app at https://github.com/sbarex/SourceCodeSyntaxHighlight seems to fix it for me by explicitly providing quicklook for many types of text source files (perhaps too many!)… Also, after installing it and then uninstalling it as a test, the “TipsAppQuicklook” message seems to go away for some — but not all! — file types, but still without actually showing the preview window.


Curiouser etc.

Dec 14, 2022 1:51 AM in response to a.jaffe

Ok, I believe that I have solved the problem slightly more generally.


Having noticed different behaviour after deleting the [syntax highlighter](https://github.com/sbarex/SourceCodeSyntaxHighlight) app, I tried some more deletions. First, I deleted TextMate. Still no preview, but the button changed from "Open with TextMate" to "Open with TeXShop". So I deleted TeXShop. And then... it worked (i.e., unhighlighted full window preview with an "Open with Bbedit" button)!


But I still wanted TextMate, so I reinstalled it (and TeXShop, although I really don't use it) and... it still worked! It still had "Open with BBedit" but I was able to change that with the "Get Info" dialog. It's not perfect: no syntax highlighting, and css files still don't show a preview, but it's an adequate solution (though I may actually go back to the new syntax-highlight app).


Clearly there is some dependence of all of this on the order of installation of the applications and how they register their capabilities which can result in clashes. I wonder if it's documented anywhere and if there are less sledgehammery ways to change how it works....



Dec 14, 2022 9:14 AM in response to etresoft

etresoft wrote:

I'm going to fire up the High Sierra VM and see if I can get those old apps working. I just want to see if they ever displayed the QuickLook preview correctly. Based on what you've said, I strongly suspect that it never worked.

And the exercise was every bit as fun as I had imagined. First of all, I downloaded the version for "Sierra and above". Of course, it requires Mojave. No problem, I've got lots of VMs. I did get it working in Mojave.


And guess what? These tools never, ever provided a functional QuickLook display. One of them, the "BibTex" tool did provide syntax highlighting. But the other one just displayed the source. Or perhaps it was simply always broken. When I deleted both quicklook extensions from the apps, it still worked.


To summarize, this problem was always caused by buggy 3rd party apps. These apps have always been buggy. It's just that no one noticed until Apple changed the QuickLook architecture and one of those buggy apps triggered some other unexpected and unexplained behaviour.


The the poor LaTeX users have never had a functional QuickLook preview that displayed the rendered content. That's literally what QuickLook was designed to do. It should come as no surprise that someone who didn't understand the fundamental concept would develop a buggy implementation.

Dec 14, 2022 9:41 AM in response to etresoft

Latex is source code, compilation is not particularly fast, and in fact latex projects can have multiple files. I would not expect (nor want) quicklook to render them as a compiled document any more than I would want quicklook to render C source code as a compiled application. The old behaviour was exactly what I (and most or all other latex users) wanted, since I would be previewing them in advance of editing them.


I am nearly certain that the system successfully did source code highlighting using whatever apps I had on my system that were able to provide that quicklook service (probably TextMate, as I’ve said), but I am absolutely 100% certain that it did successfully render them as text. TextMate was not a “buggy implementation” of the old version of quicklook, but indeed it is not being as actively maintained now and its developers (now open-source) have not implemented this, unfortunately. Until three or so months ago, it worked fine.


Yes, there is certainly a bug somewhere in the current complicated chain of macOS, some applications, and their plists which are causing some kinds of source files to not correctly render as text in quicklook under some circumstances. This may or may not be due to TextMate or another third party app like TeXShop — perhaps not entirely, because the fact that it is sometimes attempting to resolve to Apple’s “Tips” app seems suspicious.


So, please, there is no need for what I can only interpret as an angry and snarky attitude to all of us calmly trying to explain our point — even if you disagree.

Dec 14, 2022 11:14 AM in response to a.jaffe

a.jaffe wrote:

Latex is source code, compilation is not particularly fast, and in fact latex projects can have multiple files. I would not expect (nor want) quicklook to render them as a compiled document any more than I would want quicklook to render C source code as a compiled application.

That's why QuickLook displays the binary code for image files and the raw data stream from PDF files. It's QuickSource, not QuickLook.


TextMate was not a “buggy implementation” of the old version of quicklook, but indeed it is not being as actively maintained now and its developers (now open-source) have not implemented this, unfortunately. Until three or so months ago, it worked fine.

Let's review ancient history of a few hours ago. You are the one who keeps mentioning TextMate. One of the few times you didn't was when you said, "So I deleted TeXShop". To this I responded, "Deleting buggy 3rd party apps often fixes these problems." TeXShop. Not TextMate. Two different apps. Different spelling and everything.


So, please, there is no need for what I can only interpret as an angry and snarky attitude to all of us calmly trying to explain our point — even if you disagree.

There is no disagreement because there are no opinions. I've definitively, objectively established the cause of this problem - ancient, incompatible, buggy, poorly made TeX software. And to top it all off, it never actually did anything. No one ever had a functional QuickLook. It was always just source - generated by the operating system. It never, ever worked at all. But the code that was never used was written so poorly that it corrupted the normal behaviour of the system.


What a waste!

macOS Ventura: finder's file preview less powerful?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.