title: applescript to move files from folder A to folder B with excel list
body: <p>I have a folder of PDFs, around 650. And I have a excel list containing a list of PDFs I have to merge them into a single PDF.</p>
  
  <p>I found this script:</p>
  
  <pre><code>tell application "Microsoft Excel"
      tell active sheet
          set fileList to value of used range
          tell used range
              set rc to count of rows
          end tell
      end tell
  end tell
  
  set rootFolder to "/Users/aldoopenhouse/Desktop/EN ATTENTE/test cahier de details/Master Detail Book/PDF" as POSIX file
  set filesToMove to {}
  
  repeat with thisItem in fileList
      try
          set end of filesToMove to alias (rootFolder &amp; thisItem)
      on error
          display dialog "File " &amp; thisItem &amp; " is not in the folder"
      end try
  end repeat
  
  tell application "Finder"
      move filesToMove to folder "/Users/aldoopenhouse/Desktop/EN ATTENTE/test cahier de details/*RESULT" as POSIX file
  end tell
  </code></pre>
  
  <p>and this script always retourn the result : <code>file *********.pdf</code> is not in the folder</p>
  
  <p>What am I doing wrong?</p>