Repeated transfer issue and copy of same iPhone .mov files gives different results / changes files

Try this Evaluator button. It copies the selected files one at a time, which seems to help prevent the protocol from choking.

items = GetItems("fs");

d = Resolve(dest);
d = DisplayName(d);

Output("Enumerating...");

for (i = 0; i < Len(items); i++) {
    f = ArrayGet(items, i);
	f = Resolve(f);
	f = DisplayName(f);

    cmd = "Copy FILE=""" + f + """ TO=""" + d + """";
	Output("");
	Output(cmd);

	r = Run(cmd);
    Output("Exit Code: " + r);
}

Output("");
Output("... done");


// f	Only files are returned.
// s	Only selected items are returned.

// https://resource.dopus.com/t/repeated-transfer-issue-and-copy-of-same-iphone-mov-files-gives-different-results-changes-files/27689/10
XML
<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>CopySequential</label>
	<tip>Copy one file at a time</tip>
	<icon1>#clipcopy</icon1>
	<function type="eval">
		<instruction>items = GetItems(&quot;fs&quot;);</instruction>
		<instruction />
		<instruction>d = Resolve(dest);</instruction>
		<instruction>d = DisplayName(d);</instruction>
		<instruction />
		<instruction>Output(&quot;Enumerating...&quot;);</instruction>
		<instruction />
		<instruction>for (i = 0; i &lt; Len(items); i++) {</instruction>
		<instruction>    f = ArrayGet(items, i);</instruction>
		<instruction>	f = Resolve(f);</instruction>
		<instruction>	f = DisplayName(f);</instruction>
		<instruction />
		<instruction>    cmd = &quot;Copy FILE=&quot;&quot;&quot; + f + &quot;&quot;&quot; TO=&quot;&quot;&quot; + d + &quot;&quot;&quot;&quot;;</instruction>
		<instruction>	Output(&quot;&quot;);</instruction>
		<instruction>	Output(cmd);</instruction>
		<instruction />
		<instruction>	r = Run(cmd);</instruction>
		<instruction>    Output(&quot;Exit Code: &quot; + r);</instruction>
		<instruction>}</instruction>
		<instruction />
		<instruction>Output(&quot;&quot;);</instruction>
		<instruction>Output(&quot;... done&quot;);</instruction>
		<instruction />
		<instruction />
		<instruction>// f	Only files are returned.</instruction>
		<instruction>// s	Only selected items are returned.</instruction>
		<instruction />
		<instruction>// https://resource.dopus.com/t/repeated-transfer-issue-and-copy-of-same-iphone-mov-files-gives-different-results-changes-files/27689/10</instruction>
	</function>
</button>

How to use buttons and scripts from this forum