是否可以在启动服务数据库中查询将打开任意文件或UTI类型的应用程序?
我能够使用mdls显示任意文件的统一类型标识符(UTI),以及作为特定UTI的超集的类型的层次结构。 mac:~ mike$ mdls -name kMDItemContentType -name kMDItemContentTypeTree foo.ksh kMDItemContentType = "public.ksh-script" kMDItemContentTypeTree = ( "public.ksh-script", "public.shell-script", "public.script", "public.source-code", "public.plain-text", "public.text", "public.data", "public.item", "public.content" ) mac:~ mike$ mdls -name kMDItemContentType -name kMDItemContentTypeTree foo.command kMDItemContentType = "com.apple.terminal.shell-script" kMDItemContentTypeTree = ( "com.apple.terminal.shell-script", "public.shell-script", "public.script", "public.source-code", "public.plain-text", "public.text", "public.data", "public.item", "public.content" ) 除了反复试验外,是否有任何工具可以显示哪些应用已为特定的UTI注册? …