Skip to main content
zia5E08
Known Participant
February 28, 2022
Question

auto fill image into frame

  • February 28, 2022
  • 0 replies
  • 722 views

i create a script auto fill into image , this script working fine on single image selection . but when i select multiple images then it is not work please sove . 

 

/// script starting part  // 

 

// =======================================================
var idOpn = charIDToTypeID( "Opn " );
var desc1684 = new ActionDescriptor();
var iddontRecord = stringIDToTypeID( "dontRecord" );
desc1684.putBoolean( iddontRecord, false );
var idforceNotify = stringIDToTypeID( "forceNotify" );
desc1684.putBoolean( idforceNotify, true );
var idnull = charIDToTypeID( "null" );
desc1684.putPath( idnull, new File( "C:\\Users\\CHOHAN PHOTO STUDIO\\Music\\SKY BACKGROUNDS\\01 (13).jpg" ) );
var idDocI = charIDToTypeID( "DocI" );
desc1684.putInteger( idDocI, 1185 );
executeAction( idOpn, desc1684, DialogModes.ALL );
// =======================================================
var idsetd = charIDToTypeID( "setd" );
var desc1686 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref388 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idfsel = charIDToTypeID( "fsel" );
ref388.putProperty( idChnl, idfsel );
desc1686.putReference( idnull, ref388 );
var idT = charIDToTypeID( "T " );
var idOrdn = charIDToTypeID( "Ordn" );
var idAl = charIDToTypeID( "Al " );
desc1686.putEnumerated( idT, idOrdn, idAl );
executeAction( idsetd, desc1686, DialogModes.NO );
// =======================================================
var idcopy = charIDToTypeID( "copy" );
executeAction( idcopy, undefined, DialogModes.NO );

//

//

// =======================================================
var idpast = charIDToTypeID( "past" );
var desc1691 = new ActionDescriptor();
var idAntA = charIDToTypeID( "AntA" );
var idAnnt = charIDToTypeID( "Annt" );
var idAnno = charIDToTypeID( "Anno" );
desc1691.putEnumerated( idAntA, idAnnt, idAnno );
var idAs = charIDToTypeID( "As " );
var idPxel = charIDToTypeID( "Pxel" );
desc1691.putClass( idAs, idPxel );
executeAction( idpast, desc1691, DialogModes.NO );

This topic has been closed for replies.