<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Yup, and thus:<br></div><div><br></div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(206, 176, 108);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(217, 118, 77);">[ 3:25 PM]</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(131, 144, 146);">[ttys001]</span><span style="font-variant-ligatures:no-common-ligatures;">[/Users/mwilson]</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;">mbp13 $ mdls -name kMDItemContentTypeTree hello.c<span class="Apple-converted-space">     </span></span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;">kMDItemContentTypeTree = (</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.c-source",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.source-code",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.plain-text",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.text",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.data",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.item",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.content"</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;">)</span><br></p><div><br></div><div><span style="font-variant-ligatures:no-common-ligatures;">Should mean that the TW generator would be used, since there is no registration for public.c-source, and TM owns the registration for public.source-code.  But it isn’t.</span><br></div><div><br></div><div><span style="font-variant-ligatures:no-common-ligatures;">Or this one:</span><br></div><div><br></div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(206, 176, 108);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(217, 118, 77);">[ 3:28 PM]</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(131, 144, 146);">[ttys002]</span><span style="font-variant-ligatures:no-common-ligatures;">[../AppleScript/BBEdit]</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;">mbp13 $ mdls -name kMDItemContentTypeTree Create\ New\ File.applescript</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;">kMDItemContentTypeTree = (</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"com.apple.applescript.text",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.script",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.source-code",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.plain-text",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.text",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.data",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.item",</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;"><span class="Apple-converted-space">    </span>"public.content"</span><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(255, 255, 202);background-color:rgb(16, 16, 16);"><span style="font-variant-ligatures:no-common-ligatures;">)</span><br></p><div><br></div><div><span style="font-variant-ligatures:no-common-ligatures;">Should produce the same result.  But it doesn’t.</span><br></div><div><br></div><div id="sig39065985"><div>--<br></div><div>Marc Wilson<br></div><div><a href="mailto:posguy99@gmail.com">posguy99@gmail.com</a><br></div></div><div><br></div><div><br></div><div>On Sun, May 31, 2020, at 1:52 PM, Rob McBroom wrote:<br></div><blockquote type="cite" id="qt" style=""><div style="font-family:sans-serif;"><div style="white-space:normal;"><p dir="auto">On 31 May 2020, at 12:39, Curt Sellmer wrote:<br></p></div><div style="white-space:normal;"><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(119, 119, 119);color:rgb(119, 119, 119);margin-top:0px;margin-right:0px;margin-bottom:5px;margin-left:0px;padding-left:5px;"><p dir="auto"><br></p><div>I was not aware of the qlmanage utility until I saw this email....<br></div><div> <br></div><div> I am running MacOS 10.14.6 (Mojave) and when I use QuickLook to view a<br></div><div> source file such as Foo.scala I just get the generic QuickLook window<br></div><div> describing the file.<br></div><div> <br></div><div> But if I use this command:  qlmanage -p -c public.source-code U.scala<br></div><div> <br></div><div> Then I get the correct QuickLook window that uses the TextMate theme.<br></div><div> <br></div><div> It seems that the Finder is not associating the "public.source-code" type<br></div><div> with the file.  However I have told Finder to open all .scala files with<br></div><div> TextMate and indeed it is listed as the default App for opening the files.<br></div><div> Not sure if there is something else that must be done so that Finder knows<br></div><div> that this is a source code file?<br></div><p><br></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<br></p><pre style="background-color:rgb(247, 247, 247);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;margin-left:15px;margin-right:15px;overflow-x:auto;padding-top:5px;padding-right:5px;padding-bottom:5px;padding-left:5px;" bgcolor="#F7F7F7"><code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;" bgcolor="#F7F7F7">mdls -name kMDItemContentTypeTree filename.xyz
</code><br></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.<br></p><p dir="auto"><br></p><div>-- <br></div><div> Rob McBroom<br></div><p><br></p></div></div><div><br></div><div>_______________________________________________<br></div><div>TextMate mailing list<br></div><div><a href="mailto:TextMate@lists.macromates.com">TextMate@lists.macromates.com</a><br></div><div><a href="https://lists.macromates.com/listinfo/textmate">https://lists.macromates.com/listinfo/textmate</a><br></div></blockquote><div><br></div></body></html>