Folks,
One question - any idea, if it is possible mark PS document as modified? Obvious way would be to turn Document's property isDirty to true, but this does not work - not sure if this is my fault or simply I can not do it. I am looking for marking, which will work always, even when document contains only background layer, but also do not want to record anything in document history.
Thanks,
--Petr
Code: Select allvar idsetd = charIDToTypeID( "setd" );
var desc18 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref6 = new ActionReference();
var idPrpr = charIDToTypeID( "Prpr" );
var idIsDr = charIDToTypeID( "IsDr" );
ref6.putProperty( idPrpr, idIsDr );
var idDcmn = charIDToTypeID( "Dcmn" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref6.putEnumerated( idDcmn, idOrdn, idTrgt );
desc18.putReference( idnull, ref6 );
executeAction( idsetd, desc18, DialogModes.NO );