<?xml version="1.0" encoding="UTF-8"?>
<rename_preset case="none" script="yes" type="normal" version="12">
	<from>*</from>
	<to>*</to>
	<script>@script jscript
var tab = DOpus.listers.lastactive.activetab;
var i = 0;
var k = tab.selected.count;

function OnGetCustomFields(getFieldData) {
    getFieldData.fields.swapExtension = true;
    getFieldData.field_labels(&apos;swapExtension&apos;) = &apos;Swap extension&apos;;
	getFieldData.field_labels(&apos;swapExtension&apos;) = &apos;交换扩展名&apos;;
}

function OnGetNewName(getNewNameData) {
    var swapExtension = getNewNameData.custom.swapExtension;
    var j = (i % 2) == 0 ? i + 1 : i - 1;
    var tmp = j &lt; k ? tab.selected(j).name_stem + tab.selected(swapExtension ? j : i).ext : false;
    i++;
    return tmp;
}
</script>
	<custom>
		<var name="swapExtension" type="11">yes</var>
	</custom>
</rename_preset>
