I'm looking to rename a large number of files based on the folder name in which the file resides. Most folders only contain one file (usually a PDF but could be Word or other files) and I am looking to only change the file base name and not the extension.
Note: It's unlikely that there will be two of the same file types in a folder. I'm keen to avoid sequential numbering to all files but if there is a way of adding sequential numbering only in the event of two or more of the same file types then that would be great (although not essential).
I've had a look at Automator but I'm a novice.