Texture along a spline ?

I think there needs to be some kind of geometry. What’s your goal exactly with this?

If there was some kind of geometry attached, you could scale the appropriate UV coordinates by the length of the spline.