Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jelloshotsrule

macrumors G3
Original poster
Feb 7, 2002
9,596
4
serendipity
hi all.

I need an applescript to rename all the files within a folder of folders to the name of the enclosing folder plus the file name.

for example: if i had a folder called folder, with two folders inside, one called folderone and one foldertwo and then files a.pdf and b.pdf in folderone and c.pdf and d.pdf in foldertwo

I want the final filenames to be folderonea.pdf, etc. and for those final files to be copied out to another folder.

it should be pretty simple. I can get something that will work by putting the whole path as the filename but not just the enclosing folder.

thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.