Download files based on modification date?

Greetings everyone. Any help would be much appreciated.

I have created a script that runs when a user logs in to the computer that connects to one of my OSX servers and downloads files they need then logs off the server. The script is running great but the files don’t change everyday. I would like to modify the script so it only downloads the files if the date of the files on the server are newer than the ones that exist. It would also need to download any new files that would appear in the source folder as well. I’m still pretty new to applescript so any help would be much appreciated.

Thanks!

You don’t tell us what you’ve got so far, but modification date is easily extracted:

set F to choose file -- or an alias to the file
set MD to modification date of (info for F)

Dates will compare properly in an if statement.