osx - List potential applications that could open a file -
Is it possible for a user to get a list of applications installed on the computer that can be used to open a file ( An image in my case), similar to the list shown by Finder's "Open with ..." menu?
Are you looking for a program or scripting solution? Programmatic, (see LSCopyAllRoleHandlersForContentType ()
for example). For scripting, you might want to lsregister
, which is
/ system / library / framwork / coir services. Framework Version / A / Fram Works / Launch Services / Framework Work / Support
Do not fool your location in the dock. It's in carbon docs, but it's really core services, which Do not like it.
Comments
Post a Comment