hs.spotlight.group
This sub-module is used to access results to a spotlightObject query which have been grouped by one or more attribute values.
A spotlightGroupObject is a special object created when you specify one or more grouping attributes with hs.spotlight:groupingAttributes. Spotlight items which match the Spotlight query and share a common value for the specified attribute will be grouped in objects you can retrieve with the hs.spotlight:groupedResults method. This method returns an array of spotlightGroupObjects.
For each spotlightGroupObject you can identify the attribute and value the grouping represents with the spotlightGroupObject[n] will access the n'th spotlightItemObject in the grouped results.
API Overview
Methods - API calls which can only be made on an object returned by a constructor
attribute count resultAtIndex subgroups value