Color Gradient script?

 From:  amur (STEFAN)
9676.23 
Hi Brian,

thanks for the suggestion. I must admit, while I like to try out things It would
IMHO not the best workflow for users, whishing to apply a gradiend (rainbow)
to selected splines or objects.

Best regards
Stefan