Is there a simple way to get all nested files/folder?

Wanted to change label colors of every file and folder in a certain path.

Doing

set label index of every item of the_path to 2

only gets the first level.

Ist there any way to do this without using recursive code?

Give this a try =)

tell application "Finder"
	set theFolder to choose folder
	set label index of entire contents of theFolder to 2
end tell

Thanks. Perfect! That was exactly what I was looking for.