This script was requested by titane357 here: click.
What it does:
When nothing is selected and you run the script it set the Selection Filter dropdown list to All.
If Spline object is selected it set the Selection Filter to Shape
If light object is selected it set the Selection Filter to Light
and so on.