<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: QLColorCode 0.4.1</title>
	<atom:link href="http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/</link>
	<description>distraction in action</description>
	<pubDate>Fri,  5 Dec 2008 09:42:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Nitesh</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-25331</link>
		<dc:creator>Nitesh</dc:creator>
		<pubDate>Fri, 28 Nov 2008 09:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-25331</guid>
		<description>Thanks a million Oliver and n8.. real life saver</description>
		<content:encoded><![CDATA[<p>Thanks a million Oliver and n8.. real life saver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ck</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-22086</link>
		<dc:creator>ck</dc:creator>
		<pubDate>Tue, 29 Jul 2008 12:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-22086</guid>
		<description>Thanks for sharing. I was looking for ages to get this working.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. I was looking for ages to get this working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-19338</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Fri, 07 Mar 2008 18:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-19338</guid>
		<description>@yazrr

The answer is above (see reply no. 8), but to clarify, simply edit the &lt;code&gt;LSItemContentTypes&lt;/code&gt; array in QLCC info.plist (I used TextMate rather than the default app for the sake of readability) and include &lt;code&gt;public.archive.applesingle&lt;/code&gt; as one of the types to be picked up.

This is a *total* hack - basically it tricks Finder into thinking that files ending in .as (which are locked in association with the applesingle mime-type because Adobe don't export a profile with their apps) *can* be previewed in QuickLook, whereas ordinarily they can't (applesingle being a kind of archive file).

Hope that sheds some light... and hope that Adobe do something to make CS files (.ai, .as) previewable by default in the future.  If not, let me know where you're going wrong and I'll try to help... although to be honest I'm no more of an expert than you: everything I know about it is what's on here.</description>
		<content:encoded><![CDATA[<p>@yazrr</p>
<p>The answer is above (see reply no. 8), but to clarify, simply edit the <code>LSItemContentTypes</code> array in QLCC info.plist (I used TextMate rather than the default app for the sake of readability) and include <code>public.archive.applesingle</code> as one of the types to be picked up.</p>
<p>This is a *total* hack - basically it tricks Finder into thinking that files ending in .as (which are locked in association with the applesingle mime-type because Adobe don&#8217;t export a profile with their apps) *can* be previewed in QuickLook, whereas ordinarily they can&#8217;t (applesingle being a kind of archive file).</p>
<p>Hope that sheds some light&#8230; and hope that Adobe do something to make CS files (.ai, .as) previewable by default in the future.  If not, let me know where you&#8217;re going wrong and I&#8217;ll try to help&#8230; although to be honest I&#8217;m no more of an expert than you: everything I know about it is what&#8217;s on here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yazrr</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-19333</link>
		<dc:creator>yazrr</dc:creator>
		<pubDate>Fri, 07 Mar 2008 14:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-19333</guid>
		<description>Oliver, can you share your info how to get QL to show actionscript?</description>
		<content:encoded><![CDATA[<p>Oliver, can you share your info how to get QL to show actionscript?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17370</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Wed, 23 Jan 2008 08:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17370</guid>
		<description>That's what I figured, glad you're of the same opinion.

Thanks again for all the help.</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I figured, glad you&#8217;re of the same opinion.</p>
<p>Thanks again for all the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n8</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17369</link>
		<dc:creator>n8</dc:creator>
		<pubDate>Wed, 23 Jan 2008 08:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17369</guid>
		<description>Ha!  I guess I never even thought of doing that.  It should probably be fine -- the odds of encountering a real .as applesingle file are amazingly, vanishingly, astronomically small.</description>
		<content:encoded><![CDATA[<p>Ha!  I guess I never even thought of doing that.  It should probably be fine &#8212; the odds of encountering a real .as applesingle file are amazingly, vanishingly, astronomically small.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17367</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Wed, 23 Jan 2008 08:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17367</guid>
		<description>Hi N8

Thanks for your help and the explanation of how UTExportedTypeDeclarations works - I've been astounded at how little documentation there is on Quick Look as a whole.

I confess I cheated in the end and simply added &lt;code&gt;public.archive.applesingle&lt;/code&gt; to the &lt;code&gt;LSItemContentTypes&lt;/code&gt; array in the QLCC info.plist.  So far nothing has blown up. :)</description>
		<content:encoded><![CDATA[<p>Hi N8</p>
<p>Thanks for your help and the explanation of how UTExportedTypeDeclarations works - I&#8217;ve been astounded at how little documentation there is on Quick Look as a whole.</p>
<p>I confess I cheated in the end and simply added <code>public.archive.applesingle</code> to the <code>LSItemContentTypes</code> array in the QLCC info.plist.  So far nothing has blown up. <img src='http://www.n8gray.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n8</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17343</link>
		<dc:creator>n8</dc:creator>
		<pubDate>Wed, 23 Jan 2008 01:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17343</guid>
		<description>Oliver:  Don't worry about commenting -- I appreciate your willingness to share your experience.  There's basically no documentation on how conflicts are resolved in the UTI system so every bit of information is useful.

If there's no UTTypeIdentifier in Adobe's Info.plist file then they're not even attempting to define a UTI so it's not surprising that the system's binding takes precedence.  One more (slightly dangerous) thing to try:  make a &lt;code&gt;UTExportedTypeDeclarations&lt;/code&gt; section and put the .as UTI in that.  It should be something like this (substituting square brackets for angle) and it should go at the same level as the current &lt;code&gt;UTImportedTypeDeclarations&lt;/code&gt; element:

&lt;pre&gt;
[key]UTExportedTypeDeclarations[/key]
    [array]
        [dict]
            [key]UTTypeIdentifier[/key]
            [string]com.adobe.actionscript-source[/string]
            ...
        [/dict]
    [/array]
&lt;/pre&gt;

The idea is that &lt;i&gt;exported&lt;/i&gt; UTIs are ones where you are the authoritative source for that UTI, whereas &lt;i&gt;imported&lt;/i&gt; UTIs are those that don't really belong to your app but that you might need to define if they don't exist on the system.

I call this approach "dangerous" because if Adobe ever does decide to define a UTI and uses something besides "com.adobe.actionscript-source" for the type identifier then the QLCC definition may prevent those .as files from being associated with Adobe's app.  That's why the UTIs in QLCC are all of the imported kind.</description>
		<content:encoded><![CDATA[<p>Oliver:  Don&#8217;t worry about commenting &#8212; I appreciate your willingness to share your experience.  There&#8217;s basically no documentation on how conflicts are resolved in the UTI system so every bit of information is useful.</p>
<p>If there&#8217;s no UTTypeIdentifier in Adobe&#8217;s Info.plist file then they&#8217;re not even attempting to define a UTI so it&#8217;s not surprising that the system&#8217;s binding takes precedence.  One more (slightly dangerous) thing to try:  make a <code>UTExportedTypeDeclarations</code> section and put the .as UTI in that.  It should be something like this (substituting square brackets for angle) and it should go at the same level as the current <code>UTImportedTypeDeclarations</code> element:</p>
<pre>
[key]UTExportedTypeDeclarations[/key]
    [array]
        [dict]
            [key]UTTypeIdentifier[/key]
            [string]com.adobe.actionscript-source[/string]
            &#8230;
        [/dict]
    [/array]
</pre>
<p>The idea is that <i>exported</i> UTIs are ones where you are the authoritative source for that UTI, whereas <i>imported</i> UTIs are those that don&#8217;t really belong to your app but that you might need to define if they don&#8217;t exist on the system.</p>
<p>I call this approach &#8220;dangerous&#8221; because if Adobe ever does decide to define a UTI and uses something besides &#8220;com.adobe.actionscript-source&#8221; for the type identifier then the QLCC definition may prevent those .as files from being associated with Adobe&#8217;s app.  That&#8217;s why the UTIs in QLCC are all of the imported kind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17333</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 22 Jan 2008 23:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17333</guid>
		<description>[update3]

Depressingly it doesn't take too long for the problem to resurface: logging out or restarting has the effect of returning the UTI to public.archive.applesingle

Reinstalling (repairing) Flash had no effect either.

Please forgive the rash of comments, but I'm mainly leaving these updates in the hope that others won't waste as much time as I have on this issue.</description>
		<content:encoded><![CDATA[<p>[update3]</p>
<p>Depressingly it doesn&#8217;t take too long for the problem to resurface: logging out or restarting has the effect of returning the UTI to public.archive.applesingle</p>
<p>Reinstalling (repairing) Flash had no effect either.</p>
<p>Please forgive the rash of comments, but I&#8217;m mainly leaving these updates in the hope that others won&#8217;t waste as much time as I have on this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17311</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 22 Jan 2008 16:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17311</guid>
		<description>[update2]

w00t!  It turned out that I needed to refresh the LaunchServices database.

I used 
&lt;pre&gt;/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill&lt;/pre&gt;

Hope that helps someone.</description>
		<content:encoded><![CDATA[<p>[update2]</p>
<p>w00t!  It turned out that I needed to refresh the LaunchServices database.</p>
<p>I used </p>
<pre>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill</pre>
<p>Hope that helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17310</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 22 Jan 2008 16:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17310</guid>
		<description>[update]

I installed RCDefaultApp in an attempt to re-map "as" to a UTI of "com.adobe.flash.actionscript" and a MIME-type of "application/x-actionscript" but when I look at the extension "as" it is still firmly associated with "public.archive.applesingle" and "application/applefile" (respectively).

I'm still Googling furiously to try and  the answer by myself, but if you have any ideas...?</description>
		<content:encoded><![CDATA[<p>[update]</p>
<p>I installed RCDefaultApp in an attempt to re-map &#8220;as&#8221; to a UTI of &#8220;com.adobe.flash.actionscript&#8221; and a MIME-type of &#8220;application/x-actionscript&#8221; but when I look at the extension &#8220;as&#8221; it is still firmly associated with &#8220;public.archive.applesingle&#8221; and &#8220;application/applefile&#8221; (respectively).</p>
<p>I&#8217;m still Googling furiously to try and  the answer by myself, but if you have any ideas&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17305</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 22 Jan 2008 14:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17305</guid>
		<description>Hi N8

That's exactly my frustration: I edited the info.plist - duplicating a block and making the appropriate substitutions - both in QLCC contents and in Flash, used &lt;code&gt;touch&lt;/code&gt; to update the UTI references, &lt;code&gt;qlmanage -r&lt;/code&gt; to reload the QL database... all to no avail.

I agree with you that looks as though the misassociation of the .as extension with applesingle is screwing things up, but I don't know how  - short of repairing Flash via the installer - to fix this: as I say the Info pane for any .as file gives its kind as “Adobe Flash ActionScript File” not applesingle.

Any thoughts?  Many thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi N8</p>
<p>That&#8217;s exactly my frustration: I edited the info.plist - duplicating a block and making the appropriate substitutions - both in QLCC contents and in Flash, used <code>touch</code> to update the UTI references, <code>qlmanage -r</code> to reload the QL database&#8230; all to no avail.</p>
<p>I agree with you that looks as though the misassociation of the .as extension with applesingle is screwing things up, but I don&#8217;t know how  - short of repairing Flash via the installer - to fix this: as I say the Info pane for any .as file gives its kind as “Adobe Flash ActionScript File” not applesingle.</p>
<p>Any thoughts?  Many thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n8</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17276</link>
		<dc:creator>n8</dc:creator>
		<pubDate>Tue, 22 Jan 2008 06:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17276</guid>
		<description>It looks like the system thinks .as is applesingle instead of actionscript.  I'll add a section for actionscript in the next release of QLCC.  If you're impatient you can edit the Info.plist file of QLCC and add a section for .as files.  Just take a look at how the other file types are handled and you'll see it's not too hard.  I'll probably use "com.adobe.actionscript" as the type identifier.</description>
		<content:encoded><![CDATA[<p>It looks like the system thinks .as is applesingle instead of actionscript.  I&#8217;ll add a section for actionscript in the next release of QLCC.  If you&#8217;re impatient you can edit the Info.plist file of QLCC and add a section for .as files.  Just take a look at how the other file types are handled and you&#8217;ll see it&#8217;s not too hard.  I&#8217;ll probably use &#8220;com.adobe.actionscript&#8221; as the type identifier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17265</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 22 Jan 2008 03:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/blog/2008/01/07/qlcolorcode-041/#comment-17265</guid>
		<description>First off, thanks for the hard work.

Next up, a request: I'm no OS X maestro and I'm having a *miserable* time trying to get ActionScript (*.as) files previewed in QuickLook, let alone syntactically highlighted: all I get is the file icon.

The issues I seem to be up against are 
a) I can't find any UTTypeIdentifier information for ActionScript files in the info.plist under Adobe Flash CS3.app
b) Using 
&lt;code&gt;qlmanage -p [filepath].as  2&#62;&#38;1 &#124; grep 'Generator used'&lt;/code&gt;
returns 
&lt;code&gt;Content type UTI: public.archive.applesingle. Generator used: None&lt;/code&gt;
Despite the fact that the info dialogue says that its Kind is "Adobe Flash ActionScript File"

As I say, I'm no expert where this sort of thing is concerned but hours of Googling to no avail mean that I'm throwing myself on your mercy (Highlight does support ActionScript BTW).

Many thanks again,

Oliver</description>
		<content:encoded><![CDATA[<p>First off, thanks for the hard work.</p>
<p>Next up, a request: I&#8217;m no OS X maestro and I&#8217;m having a *miserable* time trying to get ActionScript (*.as) files previewed in QuickLook, let alone syntactically highlighted: all I get is the file icon.</p>
<p>The issues I seem to be up against are<br />
a) I can&#8217;t find any UTTypeIdentifier information for ActionScript files in the info.plist under Adobe Flash CS3.app<br />
b) Using<br />
<code>qlmanage -p [filepath].as  2&gt;&amp;1 | grep &#8216;Generator used&#8217;</code><br />
returns<br />
<code>Content type UTI: public.archive.applesingle. Generator used: None</code><br />
Despite the fact that the info dialogue says that its Kind is &#8220;Adobe Flash ActionScript File&#8221;</p>
<p>As I say, I&#8217;m no expert where this sort of thing is concerned but hours of Googling to no avail mean that I&#8217;m throwing myself on your mercy (Highlight does support ActionScript BTW).</p>
<p>Many thanks again,</p>
<p>Oliver</p>
]]></content:encoded>
	</item>
</channel>
</rss>
