My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FAQ  
SpotLook FAQ
Featured
Updated Feb 4, 2010 by nser...@gmail.com

What is a UTI

A Uniform Type Identifiers (UTI) is string identifing a type of data.

SpotLook tracks uses UTIs to know what to find.

Here are some UTIs for instance:

PDF files com.adobe.pdf
JPEG files public.jpeg
Safari History com.apple.safari.history

See also:

Where can I find lists of UTIs

Kevin Ballard posted an autogenerated GraphViz file showing all the Uniform Type Identifiers present on his system. I don't know how he did this, he did not post his ruby script. But for the ones who don't have GraphViz, you can download the resulting PDF file here: utigraph.pdf.

How can I know the UTI of a given file

If you have a file and you wonder what is its UTI, you can use the command-line tool mdls.

$ mdls AppleGaramond.ttf
kMDItemContentTypeTree         = (
    "public.truetype-ttf-font",
    "public.truetype-font",
    "public.font",
    "public.data",
    "public.item"
)

In this example, we will find AppleGaramond.ttf by searching for any of the UTIs of the hierarchy.

Can I list all UTIs on my system

Yes, use menu Tracks > UTI Discoverer…

See also http://seriot.ch/software_cli.php#utis for a Python script.


Sign in to add a comment
Powered by Google Project Hosting