#
hs.spotlight.item
This sub-module is used to access the individual results of a spotlightObject or a spotlightGroupObject.
Each Spotlight item contains attributes which you can access with the hs.spotlight.commonAttributeKeys
constant array, but even this is not an exhaustive list -- an application may create and assign any key it wishes to an entity for inclusion in the Spotlight metadata database.
For convenience, metamethods have been added to the spotlightItemObjects as a shortcut to the spotlightItemObject.kMDItemPath
will return the path to the entity the spotlightItemObject refers to.
#
API Overview
Methods - API calls which can only be made on an object returned by a constructor
attributes valueForAttribute