help-folder actions-script to change file's label color

I am new to apple scripting, but trying…

Here is the behavior I am looking for:

  1. I create a folder on the desktop with a Label Color (i.e. red)
  2. Drag a file and drop in the folder
  3. The file “inherits” the Label Color of the parent folder

My understanding is that with Folder Actions I could attach a script to the folder and automatically accomplish #3.

Could anyone suggest a script?

You can find here a template for your script:
Simply change the line:

set comment of anItem to "Hello!"

To fit your needs (sorry, there is not Panther still in my machine to test, but maybe something as “set label index of anItem to 5”?).