Applescript help

I have a minor problem and I'm hoping someone here can help.

I run apache on my powerbook to test PHP scripts. I have one which outputs images, a problem with this is that when it moves files their permissions are set to:

Owner: www

Access: R + W

Group: nobody

Access: none

Others: No access.

This is all fine and dandy, but when I come to make backups I can't read the files unless I go and change the permissions. I'd like to applescript this process via the terminal, but can't figure out how to loop through the file structure and modify permissions on everything on the way. Can anyone give any pointers?

Thanks.

Ben.

EDIT

--------------

SOLVED --> chmod -R 777 * in the top-level folder for my sites did the trick

#248755