Search the Community
Showing results for tags 'uti'.
Found 2 results
It's unfortunately relatively common for apps to declare non-standard (i.e. wrong) UTIs for common filetypes. OPML is a common victim, as are Markdown and Matroska. When dragging files into a File Types field (in a File Filter or under the Advanced options for Alfred's Default Results), Alfred may or may not use the "right" UTI (i.e. the same one as mdls). If Alfred chooses an unwanted UTI, you can change it by hand in info.plist in the case of a File Filter, but there's nothing you can do about the Default Results (as far as I can tell). The proper solution is for the developer of the app responsible for the rogue UTI to fix their app, but this doesn't always happen, and rarely rapidly. This issue would be relatively simple to work around if it were possible to manually edit the UTIs in File Type lists.
It'd be cool to have the option to search kMDItemContentTypeTree instead of kMDItemContentType in File Filters and File Actions. That way, it'd be possible to use UTIs like public.movie and public.audio instead of having to drag a dozen different files to the File Types box (VLC actually exports 20 filetypes that conform to public.movie). It also wouldn't matter if some application decides to redefine the UTI for .mkv or .opml files (again). It would also enable File Actions like "Tidy XML" to work on XML files that don't have the UTI public.xml but include it in their hierarchy, such as .opml, .xhtml, .opf etc.