Spotlight PRO
Spotlight lets scripts add their own resources to the system Spotlight index. When the user taps one of those results, Scripting runs the same script's spotlight.tsx file.
Spotlight indexing requires Scripting PRO.
Index Items
id is local to the current script. Calling Spotlight.index again with the same id updates the existing item.
Handle Taps
Create a spotlight.tsx file in the script project:
Spotlight.current is null in other script environments. It is available when spotlight.tsx is launched from a Spotlight result.
Spotlight tap parameters are not exposed through Script.queryParameters.
Manage Items
Users can also manage indexed items from Tools > Spotlight, including deleting entries whose script or spotlight.tsx file no longer exists.
