Hide list of components in a given display state

I see where you can do an advanced selection to select a list of parts that contains a certain text string in a custom property, but I do not see where this is readily accessible via a shortcut button? Is there a way to duplicate this functionality in a macro and have it applied to a specific display state?

SolidworksApi macros