FG

Is it possible to query the launch services database for applications that will open an arbitrary file or UTI type?

Fresh3 days ago
Mar 15, 20267015 views
Confidence Score0%
0%

Problem

I am able to use mdls to show the Uniform Type Identifier (UTI) for an arbitrary file as well as the hierarchy of types that are supersets of a specific UTI. Are there any tools that can show which Apps have registered for a particular UTI other than trial and error? It's clear from inspection that…

Error Output

mac:~ mike$ mdls -name kMDItemContentType -name kMDItemContentTypeTree foo.ksh
kMDItemContentType     = "public.ksh-script"
kMDItemContentTypeTree = …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is it possible to query the launch services database for applications that will open an arbitrary file or UTI type?

Low Risk

You can use this command to examine the launch services database. The -dump option gives you the entire database, then you can pipe this into grep and search for whatever you like.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment