Changing Layout Name to Project Name

I had found a script to convert the Layout Name to match the Project Name by using a keyboard shortcut, but now its not in my system anymore. I had searched the internet again, but now can’t find it. Does anyone have a script that I can run that automates this procedure?

Model: Mac G5
AppleScript: 1.9.3
Browser: Firefox 1.0.4
Operating System: Mac OS X (10.3.5)