Tag Archives: utis

Unearthing macOS’ Uniform Type Identifiers

The Uniform Type Identifier — UTI for short — is an interesting means to map files to the type of data they contain. macOS uses UTIs to work out what kinds of file an application can open to view or edit. My Preview… apps rely on UTIs to indicate their interest in certain file types. The system uses that information to pass files to my application extensions when a user previews a file using QuickLook. Generally, they’re hidden from users.

utitool 1.2.0 in action

There’s a flaw in the system, however. A UTI might indicate the content a file might be expected to contain, but how does the system connect a file to a UTI? By using its file extension. But while UTIs are unique, file extensions are not, and this is where the trouble begins.

Continue reading

Oi, app makers, no! Enough Markdown monkey business!

PreviewMarkdown, my modern QuickLook plug-in for Markdown files, was recently updated to version 1.1.4. It was a minor change, which is why it wasn’t announced here, but the reason for the update may interest to anyone keen to understand the workings of macOS. It also highlights some inconsiderate behaviour on the part of some Mac software developers.

PreviewMarkdown, the markdown file viewer
PreviewMarkdown relies on known Markdown file UTIs
Continue reading