Using Applescript to search and duplicate file

Hello,

I have a task in which I would like to automate and I’m hoping it’s doable. We do work for many departments within a large university. So on our server, among other clients, we have separate folders for each department.

Ex.:
Data1:Digital Copy:University Biology
Date1:Digital Copy:University Chemistry

within those folders we have seperate folders for each job. What I need to do is search all of the Univiersity folders on our Server for PDF files and then copy those PDF files to another folder. Ideally this would be automated to be done once a week.

Is this possible and what is the difficutly level.

Thanks,

Dave

Try something like this:

property searchFolder : quoted form of "/Data1/Digital Copy"
property copyFolder : quoted form of "/SomeWhereElse/SomeFolder"

try
	do shell script "find " & searchFolder & " -iname *.pdf -exec cp {} " & copyFolder & " \\;"
on error errorMsg number errorNum
	display dialog "Error (" & errorNum & "):" & return & return & errorMsg buttons "Cancel" default button 1 with icon caution
end try