Trying to attach a folder action with another folder action!

I am trying to attach a folder action script to new folders that are placed in a folder.

I thought I could do it with this :

on adding folder items to this_folder after receiving added_items
try
tell application “Finder”
set the folder_name to added_items
tell application “System Events”
attach action to folder_name using “MF:Library:Scripts:Folder Action Scripts:addemail.scpt”
end tell
end tell
end try
end adding folder items to

Any pointers greatfully recived.
Still trying to learn this stuff so go easy on me!

Thanks in advance

Jim

Maybe this will work.

 on adding folder items to this_folder after receiving added_items
  repeat with item_ in added_items
   if folder of (info for item_) is true then
    try
     tell application "System Events" to ¬
      attach action to item_ using alias ¬
       "MF:Library:Scripts:Folder Action Scripts:addemail.scpt"
    end try
   end if
  end repeat
 end adding folder items to

Tested with OS X 10.3.5.

– Rob