Thanks guys
I wanted entsel because I wanted to pick a single entity ie the viewport.
I guess I could use (ssget ":s" '((0 . "viewport")))
to get the same result as entsel
It seems to me the only possible answer is to use Alan's suggestion
Although I have not figured out how to do it yet.
This problem seems to be much harder to achieve than I first thought.