Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Add Quick Look support for certain file formats' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Add Quick Look support for certain file formats
Authored by: zaphodb on Nov 27, '07 01:45:51PM

I can not figure out from these hints how to add certain plain text file extensions
to be shown with the same quick look preview as other text edit files.
Let's say some logger generates text files with a .rglog extension, how can I make these files work properly with quick look?

Thanks!



[ Reply to This | # ]
10.5: Add Quick Look support for certain file formats
Authored by: jocamero on Jan 27, '08 07:40:31PM
I'm having the same challenges... I'd like to add .nfo files to Quick Look. I've attempted editing the .plist file for TextEdit which I have set to open the .nfo (plain txt file). Here's what I've added at the end of the file just before these last two lines:
</dict>
</plist>


  <key>UTExportedTypeDeclarations</key>
  <array>
    <dict>
      <key>UTTypeConformsTo</key>
      <array>
        <string>public.text</string>
        <string>public.plain-text</string>
      </array>
      <key>UTTypeDescription</key>
      <string>nfo text file</string>
      <key>UTTypeIdentifier</key>
      <string>com.apple.ostype</string>
      <key>UTTypeTagSpecification</key>
      <dict>
        <key>com.apple.ostype</key>
        <string>TEXT</string>
        <key>public.filename-extension</key>
        <array>
          <string>nfo</string>
        </array>
      </dict>
    </dict>
  </array>

Can anyone fill me in on what I'm missing??

[ Reply to This | # ]
adding support for .nfo files
Authored by: jocamero on Jan 27, '08 09:22:20PM
Well I never could figure out how to edit the TextEdit .plist file so I downloaded TeXShop and successfully edited its .plist file. I basically added the .nfo string to the original poster's suggested edit. And now I can quick look any .nfo file and presumable any extension that is formated as a plain text file. I don't use the TeXShop application for anything other than this purpose so is there anyone that can come up with a more elegant solution? Possibly editing the TextEdit .plist file?


	<key>UTExportedTypeDeclarations</key>
	<array>
		<dict>
			<key>UTTypeConformsTo</key>
			<array>
				<string>public.text</string>
				<string>public.plain-text</string>
			</array>
			<key>UTTypeDescription</key>
			<string>TeX text file</string>
			<key>UTTypeIdentifier</key>
			<string>org.tug.tex</string>
			<key>UTTypeTagSpecification</key>
			<dict>
				<key>com.apple.ostype</key>
				<string>TEXT</string>
				<key>public.filename-extension</key>
				<array>
					<string>tex</string>
					<string>latex</string>
					<string>ltx</string>
					<string>texi</string>
					<string>ctx</string>
					<string>nfo</string>
				</array>
			</dict>
		</dict>
	</array>

[code/]


[ Reply to This | # ]