24
6
Is there a command line utility to which I can pass a filename, that will return applicable UTIs for that file?
For example:
hypothetical-uti-fetcher /Library/Desktop\ Pictures/Aqua\ Blue.jpg
might give me:
public.jpeg
public.image
public.data
1Suppose I turned off my Spotlight index and I seem to have no metadata stored. (mdls whatever-file just says that the file was not found). How do the md* services generate the content types in the first place? – Aurel Bílý – 2015-02-17T17:53:41.477
3Excellent. Thanks.
mdls -name kMDItemContentTypeTree /Library/Desktop\ Pictures/Aqua\ Blue.jpg
is exactly what I wanted. – smokris – 2010-11-10T00:41:13.213You're welcome, I'm glad this helped. – Wuffers – 2010-11-10T01:06:30.063