Scripting Help

I’m new to scripting, and I’m looking for a script that will
search a folder for .pdf and move it to another folder. Can
anyone help or point me to the right direction?

tell application "Finder"
move every file of folder [insert path here] whose name contains ".pdf" to folder [insert path here]
end tell

If you wish this to run automatically, either use FOLDER ACTIONS (see the Mac Help system), which require the folder remain open on the desktop, or use the iDo Script Scheduler, a demo version was supplies with OS9 (and OS 8.5, I think). There are other solutions to automatically running Applescripts. Use the search function here to retrieve old answers to this question.