This code sets "add copy to layer names" function setAddCopyToLayerNames (add){ var desc = new ActionDescriptor(); var ref = new ActionReference(); ref.putProperty( charIDToTypeID( "Prpr" ), stringIDToTypeID( "addCopyToLayerNames" ) ); ref.putEnumerated( charIDToTypeID( "capp" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) ); desc.putReference( charIDToTypeID( "null" ), ref ); desc.putBoolean(stringIDToTypeID( "addCopyToLayerNames" ), add) executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO ); } setAddCopyToLayerNames (true); So code for layerThumbnails according code which can read value should look like this: var desc = new ActionDescriptor(); var ref = new ActionReference(); ref.putProperty( charIDToTypeID( "Prpr" ), stringIDToTypeID( "layerThumbnailSize" ) ); ref.putEnumerated( charIDToTypeID( "capp" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) ); desc.putReference( charIDToTypeID( "null" ), ref ); desc.putEnumerated(stringIDToTypeID( "layerThumbnailSize" ), stringIDToTypeID( "size" ),stringIDToTypeID( "none" )); executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO ); Anyway it doesn't work and it doesn't throw error either. Any Idea why?
... View more