Answered
How to complete Image/Trap with javascript
I work with CMYK images and I want to create script which will flatten layers and complete trapping 0,2mm. I tried with Script Listener and i got this code but result is slightly different when i do it manuly.
var idFltI = charIDToTypeID( "FltI" );
executeAction( idFltI, undefined, DialogModes.NO );
// =======================================================
var idTrap = charIDToTypeID( "Trap" );
var desc6698 = new ActionDescriptor();
var idWdth = charIDToTypeID( "Wdth" );
var idRlt = charIDToTypeID( "#Rlt" );
desc6698.putUnitDouble( idWdth, idRlt, 0.566895 );
executeAction( idTrap, desc6698, DialogModes.NO );
