title: Moving entire folders with AppleScript
body: <p>This is my very first use of AppleScript. I'm trying to use it to move a 100+ folders (and their content files) from one location to another. I'm not just moving the files because I want to maintain the filing system. So I've got the folders listed in a .txt file in this format:</p>
  <blockquote>
  <p>Macintosh HD:Users:Tom:Music:iTunes:Afrika Bambaataa</p>
  <p>Macintosh HD:Users:Tom:Music:iTunes:Air</p>
  </blockquote>
  <p>And then I run the following in AppleScript:</p>
  <pre><code>tell application &quot;Finder&quot;
      set TextFile to (choose file with prompt &quot;Select your text file&quot; of type {&quot;txt&quot;})
      set My_Folder to (choose folder with prompt &quot;Select your destination folder&quot;)
      set List_files to paragraphs of (read TextFile)
      move List_files to My_Folder
  end tell
  </code></pre>
  <p>However the error I receive is the following:</p>
  <blockquote>
  <p>error &quot;Finder got an error: Handler can’t handle objects of this class.&quot; number -10010</p>
  </blockquote>
  <p>Any help on what I'm doing wrong here?</p>
  <p>Much appreciated!</p>