Can Dispatch tell how many files are selected?

I'm conceiving a Dispatch Action (initiated by a menu command) that will work when run while a single file is selected, but should abort if the menu command is clicked while multiple files are selected.

I can't find any way for Dispatch to distinguish between these two conditions.

Brian-

SolidworksSolidworks Pdm enterprise Pdm