Polyline script

Yes, BooleanIntersection should work. It works on two sets of objects, so you will need to choose one of them for one set and the other two for the other set.

–Mitch