Getting the current number of stamp source
This script changes stamp source to x. I dont know how to get current source number. Anyone know how to do this?
function CloneSource(x){ //x: {1-5}
var cloneNr = "cloneSourceSource" + x
try {
var idslct = cTID( "slct" );
var desc198 = new ActionDescriptor();
var idnull = cTID( "null" );
var ref124 = new ActionReference();
var idMn = cTID( "Mn " );
var idMnIt = cTID( "MnIt" );
var idcloneSourceSourceone = sTID( cloneNr );
ref124.putEnumerated( idMn, idMnIt, idcloneSourceSourceone );
desc198.putReference( idnull, ref124 ); executeAction( idslct,desc198, DialogModes.ALL );}
catch(e){if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;} else{alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));}}
}