Searching for Shortcuts with NSMetadataQuery?

Using Spotlight, the currently available shortcuts of the Shortcuts app can be displayed and opened/started under macOS 12. Since I would like to display a list of available shortcuts in my application, I wonder how this could be realized.

Using NSMetadataQuery and the corresponding NSPredicate Spotlight can be accessed and searched. Files, directories and various other information can be requested from Spotlight this way, but I can't find a suitable search filter to give me the available shortcuts.

Does anyone here have any ideas?

  • Hi i also want to know the same, thanku for asking.

Add a Comment