Add More File Type to Quick Look

Back to Home

If you want to add more file type handled by my plugin, use this place holder automator application and modify the file named /Applications/Unique Type Identifiers.app/Contents/Info.plist.

Add a section like this at the end:

<dict>
      <key>UTTypeConformsTo</key>
      <array>
        <string>net.samlepirate.uti.xml</string>
      </array>
      <key>UTTypeDescription</key>
      <string>Visual Studio Project</string>
      <key>UTTypeIdentifier</key>
      <string>net.samlepirate.uti.vcproj</string>
      <key>UTTypeTagSpecification</key>
      <dict>
        <key>com.apple.ostype</key>
        <string>TEXT</string>
        <key>public.filename-extension</key>
        <array>
          <string>vcproj</string>
        </array>
      </dict>
</dict>


before:
  </array>
</dict>
</plist>


Change UTTypeDescription value. Then change UTTypeIdentifier to a unique identifier (use something like net.samlepirate.uti.file_extension) and add your extension in the public.filename-extension array.
You can let the plugin choose between a standard xml or text color syntaxing for your file by changing the value of UTTypeConformsTo from net.samlepirate.uti.xml to net.samlepirate.uti.text.