Using AppleScript to rename files by folder hierarchy
I have thousands of music projects with a somewhat fixed folder hierarchy and I'm trying to first rename and then extract (move) certain files from their original location.
Here is the most common example of the hierarchy: ProjectName/Info/Setups/fixed name file (either a pdf, txt or jpg)
My goal is to have these files renamed after their parent folders, all the way up to the Project Name and then have them moved to a set folder, out of this dull dictatorship I've created, so my files would end up with a name like this: ProjectName - Info - Setups - fixed name file
Would someone care to explain how could I achieve this via AppleScript?
Thanks.
iMac 20'', Mac OS X (10.6.8)