<?xml version="1.0" encoding="UTF-8"?>
<rename_preset case="none" group="My" ignoreext="yes" preset="09 插入字符到指定位置" script="yes" type="normal" version="13">
	<from>*</from>
	<to>*</to>
	<script>@script jscript
function OnGetNewName(getNewNameData)
{
	var name = getNewNameData.newname_stem_m;
	var ext = getNewNameData.newname_ext_m;

	var pos = getNewNameData.custom.pos;
	var zifu = getNewNameData.custom.zifu;

	if (name.length &gt; pos)
	{
	
		var A = String(name.substr(0,pos));
		var B = name.substr(pos,name.length);

		name = A + zifu + B;
	}

	return name + ext;
}

function OnGetCustomFields(getFieldData)
{
	getFieldData.fields.pos = 0;
	getFieldData.fields.zifu = &quot;&quot;;

	getFieldData.field_labels(&quot;pos&quot;) = &quot;插入位置&quot;;
	getFieldData.field_labels(&quot;zifu&quot;) = &quot;插入字符&quot;;
}</script>
	<custom>
		<var name="pos" type="3">2</var>
		<var name="zifu" type="8">wsc</var>
	</custom>
</rename_preset>
