Is there a way in OS X to find out if QuickLook can (potentially) preview a file, given just its name?
My specific case is I'm showing previews for files in a git repository, so they have to be extracted in order to give them to QuickLook. I'd rather avoid that work if there's no chance a preview will actually be displayed.
I saw that in iOS you can do [QLPreviewController canPreviewItem:]
, but that's not available on OS X.