Skip to content

quicklook – Why isn’t my Quick Look generator being used by Finder?

  • by


I’ve created a QuickLookMsgPack.qlgenerator, which is placed in ~/Library/QuickLook/QuickLookMsgPack.qlgenerator.

qlmanage find it:

$ qlmanage -m plugins | grep QuickLookMsgPack
  se.xyz.msgpack -> ~/Library/QuickLook/QuickLookMsgPack.qlgenerator (1.0)

I can even debug it using:

qlmanage -p -c se.xyz.msgpack ~/Downloads/path/2023-03-16_15-13-47.912-write.msg

However, Finder never uses my generator, it just show the generic “Quick Look”. Here’s how it looks in Finder:

Here’s the relevant parts of my Info.plist:

    <array>
        <dict>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.data</string>
            </array>
            <key>UTTypeDescription</key>
            <string>Message pack document</string>
            <key>UTTypeIconFile</key>
            <string>public.text.icns</string>
            <key>UTTypeIdentifier</key>
            <string>se.xyz.msgpack</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>public.filename-extension</key>
                <array>
                    <string>msg</string>
                    <string>pack</string>
                </array>
            </dict>
        </dict>
    </array>
    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>QLGenerator</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>se.xyz.msgpack</string>
            </array>
        </dict>
    </array>

Leave a Reply

Your email address will not be published. Required fields are marked *