I don't think there's a script to do just that... Mesh is simply a cluster of edges, and script is not an artificial intelligence to figure out which edges you want to be extracted.
That being said, I think I've found a recipe that will work for this particular case, as all of the strips have just two rows of quads, so:
1, You quadrify the mesh using quadrify all operation from ribbon
2, You select all borders of mesh
3, You convert border selection to edge selection
4, You invert edge selection to get everything except border
5, You shrink edge selection once to get just center loop
6, You use loop command to extend selected loops to the both ends of hair strips
7, You use Create shape from selection command to extract them into splines.
Although hard to tell if it will work for hair as direction of the spline probably matters.
PS: Sorry bout the music, I forgot to turn off recording of computer sounds.