Script request: file path too long to copy

I'm not sure if this is appropriate, but: does anyone know, or could write a script that helps me move files that are nested to deep.

When the files are nested to deep, I get a file name/path too long error.
My work around is to recreate the tree by hand on the destination and then, in the source, rename all subdirs to 'a', 'b', 'c' etc. and then I'm able to copy those files.

It should be possible to do this by script, since it's an algorithm I do by hand.
Only I'm not a script programmer, so if anyone could help me: please. _o/_

Here's one: [Lenght of selected files)