macos: find all installed applications capable of editing (eg) .jpg files

Hi,

I think the title says it: my application needs to obtain a list of all applications that are configured as potential editors of a certain file type, for example jpeg or tiff.

I've found LSCopyAllRoleHandlersForContentType which appears to do what I need, but it is deprecated since macos 12.0.

What's the modern alternative? My app is built in c++ with some objective-c.

Thanks Joost

Replies

but it is deprecated since macos 12.0.

Right. And the deprecation notice says Use -[NSWorkspace URLsForApplicationsToOpenContentType:] instead. Have you tried that?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"