• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!

How to (re)enable QuickLook preview of XMP files on OS X

29 August 2021 / Alec Kinnear / Leave a Comment

If you are having trouble previewing XMP files with Quick Look you are not alone. In my case, the issue turns out to be Affinity Photo and Affinity Designer take over the XMP file extension but fail to provide a Quick Look preview module (very bad manners Serif!, almost Adobe-like in its self-centred disregard for users).

How to check if you have the issue:

  1. find an .xmp file
  2. press space bar
  3. if you see a plain white box with an option to open up the .xmp file in an application, your .xmp file type has been hijacked for Quick Look.
Failed Quick Look look up of an XMP file
Quick Look on an XMP file when Quick Look is not working

Just changing the assigned application via File Info dialogue won’t help. I tried TextEdit, Sublime Edit, TextMate, nothing helped.

File info dialogue which shows BBEdit as the appliction to open XMP files
File info dialogue for XMP files set to open all XMP files in BBEdit

The way to see which application has taken over the .xmp file format is to run either of these commands.

mdls -name kMDItemContentType /Volumes/DiskName/PathToYourFile/IMG_0299.xmp

or:

sudo qlmanage -p -d4 /Volumes/DiskName/PathToYourFile/IMG_0299.xmp

The first one returns a very simple:

kMDItemContentType = "com.seriflabs.xmp"

Serif Labs of course is the software company behind Affinity Photo and Affinity Designer. The second one returns a great deal of text with final lines which will look like:

[DEBUG] Preview test for file:///Volumes/DiskName/PathToYourFile/IMG_0299.xmp. Content type UTI: com.seriflabs.xmp
[DEBUG] Loading <QLGenerator Text.qlgenerator>
[DEBUG] Thumbnailing file:///Volumes/DiskName/PathToYourFile/IMG_0299.xmp - type: com.seriflabs.xmp - generator: <QLGenerator Text.qlgenerator> (try #1)
[DEBUG] Thumbnailing file:///Volumes/DiskName/PathToYourFile/IMG_0299.xmp - type: com.seriflabs.xmp - generator: <QLGenerator Text.qlgenerator> (try #1)

There is a plugin to help with text-based files which do not preview in Quick Look. It’s called QuickLookStephen. QuickLookStephen used to require homebrew but now it’s possible to download a direct binary with no need to build it yourself (a big thumbs up from those of us who don’t like to add too many additional frameworks to maintain and for security reasons).

QuickLookStephen should be installed in ~/Library/QuickLook or /Library/QuickLook but unless you have other users who might need QuickLookStephen it’s better to put it in your own user’s Library as that means 1. QuickLookStephen will migrate with your User and 2. if you are troubleshooting issues with an alternative user QuickLookStephen won’t be installed (one less issue to worry about).

After installing QuickLookStephen, this is how to make sure it’s working. Run these commands:

  1. qlmanage -r
  2. qlmanage -r cache
  3. Restart Finder (hold down option key when right-clicking on Finder Dock icon, select “Relaunch: from the menu; or simply force quit Finder).

Alas once installed QuickLookStephen does not automatically take over .xmp files if Affinity Photo or Affinity Designer are installed.

The way to make sure QuickLookStephen will take over .xmp files is to modify its .plist.

  1. Open up the directory ~/Library/QuickLook. You’ll see QuickLookStephen there.

  2. Right click on the package and you’ll be able to open up a directory Contents.

  3. Open that directory to find an info.plist file.

  4. Open info.plist in your favourite text editor.

  5. Search for <key>LSItemContentTypes</key>

  6. You will probably find just a single array string: <string>public.data</string>

  7. You should add these two strings: <string>public.content</string> and <string>com.seriflabs.xmp</string>

    Here’s what the full key should look like now:

             <key>LSItemContentTypes</key>
             <array>
                 <string>public.data</string>
                 <string>public.content</string>
                 <string>com.seriflabs.xmp</string>
             </array>
  8. Save info.plist

  9. qlmanage -r

  10. qlmanage -r cache

  11. Restart Finder (hold down option key when right-clicking on Finder Dock icon, select “Relaunch: from the menu; or simply force quit Finder).

Now it’s time to find one of your .xmp files again and press space bar to invoke QuickLook. You should see something this with a preview of the full XML code.

Preview of Apple QuickLook XMP file format
Preview of Apple QuickLook XMP file format

The good news: you can use QuickLookStephen and this technique to add any text-based filetype which won’t preview in QuickLook. Personally I’m thrilled to have a way to get quick preview of any file and very grateful to Duncan Robertson for creating such a useful Swiss-Army knife QuickLook plugin. Duncan is another generous programmer from the world of mountain biking (both Martin and I are also keen mountain bikers).

The bad news: QuickLookStephen no longer works on Big Sur. Apple breaks nearly everything third party now, it makes using Apple computers fairly awful. My next computers will probably be Linux for privacy reasons, but I intend to work on Mojave for another five years at least for AV work.

Even more detailed instructions are here with troubleshooting help from Michael Klement, Mark Fleming and Sailesh Kotha.

Bonus Tip: .xmp code highlighting for BBEdit

I use BBEdit for editing .xmp files in text form and most programming. Out of the box, BBEdit 14 does not offer syntax highlighting for .xmp files. It turns out XMP files are formatted in XML which is supported by BBEdit but only for the following file extensions: plist, rss, svg, webloc, wml, xhtml, xml. Happily Bare Bones makes it very easy to add .xmp to this list. Just open up Preferences –> Languages and add Extension xmp with Language XML in the Custom filename extensions mappings table:

BBEdit Preferences to set up XMP code highlighting
BBEdit Preferences to set up XMP code highlighting

The results are much, much better.

XML Syntax Highlighting makes an XMP file much more readable
XML Syntax Highlighting makes an XMP file much more readable

It’s definitely worth it to enable syntax highlighting as it’s so much easier to read and edit an XMP/XML file with syntax highlighting enabled. A quick check of vanilla installs of Sublime Text, TextMate, Code Runner, Panic Nova and VSC suggests none of the big code editors support code highlighting of XMP files out of the box. If you’re not using BBEdit, a similar method to the above will allow you to add code highlighting for XMP files in your code editor of choice. The procedure in Nova is almost exactly the same as in BBEdit. Here’s how the Panic Nova preference pane looks:

Nova Preferences to set up XMP code highlighting
Nova Preferences to set up XMP code highlighting

Results looks slightly more pleasing. But unlike in BBEdit though, you’ll have to reopen the file for syntax highlighting to start working.

Alec Kinnear

Alec Kinnear

Alec has been helping businesses succeed online since 2000. Alec is an SEM expert with a background in advertising, as a former Head of Television for Grey Moscow and Senior Television Producer for Bates, Saatchi and Saatchi Russia.

Categories: IT

Related Posts

  1. Apple iTunes Library: Move iTunes Successfully via the Finder

    Apple iTunes Library: Move iTunes Successfully via the Finder

  2. UTF-8 URLs in flash flowplayer not working: workaround?

    UTF-8 URLs in flash flowplayer not working: workaround?

  3. Preview not showing

    Preview not showing

Reader Interactions

Leave a Reply Cancel reply

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

You can click here to Subscribe without commenting

Primary Sidebar

Categories

  • Business
  • Camera Reviews
  • Case Studies
  • Design
  • FV Player
  • Internet Marketing
  • IT
  • Life
  • SEO
  • Slovak
  • Video of the Week
  • WordPress

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!