Rename File from Parent Folder Name

No need to reinvent the wheel for that. Peter himself covered that use case nicely years ago: Batch Rename files in the Finder

In fact, I think it's even in KM's Macro Library by default:

59%20AM