Paul's code works well, but it doesn't resample image which I want, so it changes do PPI but also cm dimensions.
example:
file 100x100 @ 100PPI
after script is:
138,89x138,89 @ 72PPI
I want it to still be 100x100cm but with 72PPI
this one does the job, but If i paste it on the beginning of my script I get error:
[CODE]// =======================================================var idImgS = charIDToTypeID( "ImgS" );
var desc4 = new ActionDescriptor();
var idRslt = charIDToTypeID( "Rslt" );
var idRsl = charIDToTypeID( "#Rsl" );
desc4.putUnitDouble( idRslt, idRsl, 72.000000 );
var idIntr = charIDToTypeID( "Intr" );
var idIntp = charIDToTypeID( "Intp" );
var idbicubicAutomatic = stringIDToTypeID( "bicubicAutomatic" );
desc4.putEnumerated( idIntr, idIntp, idbicubicAutomatic );
executeAction( idImgS, desc4, DialogModes.NO );[/CODE]
sorry.. I just lame when it comes to scripting.. :/