title: I am trying to tell Finder to move files with AppleScript. But I don't know how to deal with duplication/replacement/skipping
body: <p>The script is as below:</p>
  
  <pre><code>tell application "Finder"
  
      set destinFolder to (choose folder)
  
      try
          move selection to destinFolder
      on error vMessage number -15267
          display dialog "" &amp; vMessage
      end try
  
  end tell
  </code></pre>
  
  <p>Basically,if a file with the same name has already existed in the destination folder, I want users have the choice to duplicate,replace or just skip that file and continue the next file movement <strong>using AppleScript</strong>. Just like the pic below.</p>
  
  <p><img src="https://i.stack.imgur.com/pjyhN.png" alt="enter image description here"></p>
  
  <p><strong>Update:</strong> I know how to display a dialog like the one above,the problem is I don't know how to implement the "duplicate,replace or just skip" logic in AppleScript. And besides, I want to keep this line:</p>
  
  <pre><code>move selection to destinFolder
  </code></pre>
  
  <p>Because this line of code show a proper moving progress percentage in a single dialog, using <code>repeat</code> will lose that benefit.</p>