set folder icon

Is there a way to set the folder icon of folder a to folder b?

Click on a folder and key [command - i] to bring up the info for the folder’s icon you want to copy. Click on the Icon in the info box and [command - c] to copy. Next click on the folder you want to change to icon to. You will see the folder’s icon change in the info box. Click on the icon and key [command - v] to copy the first icon to the second folder.
SC
If you meant can it be scripted, I’m fairly confident that would be a total waste of time.