This works perfectly! I am obliged to you! Thanks a lot!
The scale worked perfectly when scaling both spline and TS meshes. The script worked like a charm as well! Now I encounter another issue though. When I boolean the meshes from a box (thick sheet of wood in reality), the result is straight capsules, not curved ones. I attach a picture.
Is there any way to collapse the geometry to the current state?
P.S. Just an idea that now came into my mind. If would like to animate the carving of the CNC machine onto the wood, I think that I would animate the TS mesh and use it with ProBoolean, right? If the mesh needs to be collapsed (maybe), then how would you animate this? As I said, I do not need the animation right now, I just thought of that.