List applicable Quick Actions

Touch Bar can present the user with Quick Actions relevant to the current selection.


I would like to provide the same feature to users who do not have a Touch Bar. The Finder lists Quick Actions in a submenu of the context menu. That’s the behavior I would like to replicate.


I can't find any API to get a list (or menu) of applicable Quick Actions.


AFAIK, there also is no API to list service (NSService). These are listed automatically in the Services menu and in context menu. There seems to be no way to provide custom UI to listing services.



BTW, what is the exact difference between a regular service and a Quick Action? What I noticed:

- Quick Actions are provided by an extension bundle rather than an application

- Thus they run and provide UI without running the host application

- Quick Actions can have icons