title: how to use applescript to move files to new folder by extension, keeping subfolder name
body: <p>Here's what I'm trying to do. </p>
  
  <p>I've got a file structure that contains photos in both JPG and RAW formats. It's a folder called "Photos" with subfolders by date. I'd like to copy just the RAW photos to a new folder, "Photos RAW", but keep the structure by date taken/created.</p>
  
  <p>I can copy just the files using automator or applescript a directory to a new one, but how do I walk the directory tree using applescript so I cover all the subfolders?</p>