<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 31 May 2020, at 12:39, Curt Sellmer wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I was not aware of the qlmanage utility until I saw this email....<br>
<br>
I am running MacOS 10.14.6 (Mojave) and when I use QuickLook to view a<br>
source file such as Foo.scala I just get the generic QuickLook window<br>
describing the file.<br>
<br>
But if I use this command: qlmanage -p -c public.source-code U.scala<br>
<br>
Then I get the correct QuickLook window that uses the TextMate theme.<br>
<br>
It seems that the Finder is not associating the "public.source-code" type<br>
with the file. However I have told Finder to open all .scala files with<br>
TextMate and indeed it is listed as the default App for opening the files.<br>
Not sure if there is something else that must be done so that Finder knows<br>
that this is a source code file?</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">You can always see what UTIs the system thinks a file has by running</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">mdls -name kMDItemContentTypeTree filename.xyz
</code></pre>
<p dir="auto">I forget what (if any) influence installed apps have on the list, but that’s almost certainly what Finder is using.</p>
<p dir="auto">-- <br>
Rob McBroom</p>
</div>
</div>
</body>
</html>