Please help with simple script

I have this little script simple script that is not working. It is a folder script that changes the permission of any files added to it. It is a Pulbic folder.

on adding folder items to this_folder after receiving added_items
	tell application "Finder"
		set fold_name to the name of this_folder
		try
			repeat with i from 1 to number of items in added_items
				set new_item to item i of added_items
				set the item_path to the quoted form of the POSIX path of new_item
				do shell script ("/bin/chmod 777 " & item_path) user name "root" password "cbn" with administrator privileges
			end repeat
		end try
	end tell
end adding folder items to

Thank you in advance for all the help.
Sam

Jacques my friend you are a genious … :smiley:

I guess you can not run a “do shell script” with in a tell … end tell command?

Again, thanks for all the help. I worked on this little guy for 2 days with no luck.

Thanks,
sam