Locking every item in folder after duplicating

Hi,

I have a script which duplicates the contents of a source folder to a destination folder and then locks every file in the destination.

duplicate every item in folder appdataSrc to folder appdataDest
set locked of every item in folder appdataDest to true

Should this work OK with any version of applescript running on OS X?

Thanks.

I realised after some more testing of this that it doesn’t lock the contents of the sub folders and so on. Would it be easy to adapt this code to do that?

Cheers.