I think, I'm making some progress. Once I'm a newbie on scripts, I could create, I mean, ScriptListener could create the following: // ======================================================= var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" ); var desc1 = new ActionDescriptor(); var idjsCt = charIDToTypeID( "jsCt" ); desc1.putPath( idjsCt, new File( "B:\\Meus documentos\\Downloads\\ScriptListner OFF.jsx" ) ); var idjsMs = charIDToTypeID( "jsMs" ); desc1.putString( idjsMs, """[ActionDescriptor]""" ); executeAction( idAdobeScriptAutomationScripts, desc1, DialogModes.NO ); // ======================================================= var idHd = charIDToTypeID( "Hd " ); var desc2 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list1 = new ActionList(); var ref1 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref1.putEnumerated( idLyr, idOrdn, idTrgt ); list1.putReference( ref1 ); desc2.putList( idnull, list1 ); executeAction( idHd, desc2, DialogModes.NO ); // ======================================================= var idShw = charIDToTypeID( "Shw " ); var desc3 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list2 = new ActionList(); var ref2 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref2.putEnumerated( idLyr, idOrdn, idTrgt ); list2.putReference( ref2 ); desc3.putList( idnull, list2 ); executeAction( idShw, desc3, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc4 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref3 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref3.putProperty( idChnl, idfsel ); desc4.putReference( idnull, ref3 ); var idT = charIDToTypeID( "T " ); var ref4 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref4.putName( idChnl, "Cima" ); desc4.putReference( idT, ref4 ); executeAction( idsetd, desc4, DialogModes.NO ); // ======================================================= var idHd = charIDToTypeID( "Hd " ); var desc5 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list3 = new ActionList(); var ref5 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref5.putEnumerated( idLyr, idOrdn, idTrgt ); list3.putReference( ref5 ); desc5.putList( idnull, list3 ); executeAction( idHd, desc5, DialogModes.NO ); // ======================================================= var idShw = charIDToTypeID( "Shw " ); var desc6 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list4 = new ActionList(); var ref6 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref6.putName( idLyr, "8" ); list4.putReference( ref6 ); desc6.putList( idnull, list4 ); executeAction( idShw, desc6, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc7 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref7 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref7.putName( idLyr, "8" ); desc7.putReference( idnull, ref7 ); var idMkVs = charIDToTypeID( "MkVs" ); desc7.putBoolean( idMkVs, false ); executeAction( idslct, desc7, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc8 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref8 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref8.putName( idLyr, "9 copy 4" ); desc8.putReference( idnull, ref8 ); var idMkVs = charIDToTypeID( "MkVs" ); desc8.putBoolean( idMkVs, false ); executeAction( idslct, desc8, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc9 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref9 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref9.putProperty( idChnl, idfsel ); desc9.putReference( idnull, ref9 ); var idT = charIDToTypeID( "T " ); var ref10 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref10.putName( idChnl, "Cima" ); desc9.putReference( idT, ref10 ); executeAction( idsetd, desc9, DialogModes.NO ); // ======================================================= var idTrnf = charIDToTypeID( "Trnf" ); var desc10 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref11 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref11.putEnumerated( idLyr, idOrdn, idTrgt ); desc10.putReference( idnull, ref11 ); var idFTcs = charIDToTypeID( "FTcs" ); var idQCSt = charIDToTypeID( "QCSt" ); var idQcsi = charIDToTypeID( "Qcsi" ); desc10.putEnumerated( idFTcs, idQCSt, idQcsi ); var idPstn = charIDToTypeID( "Pstn" ); var desc11 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc11.putUnitDouble( idHrzn, idRlt, 300.462431 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc11.putUnitDouble( idVrtc, idRlt, 388.951367 ); var idPnt = charIDToTypeID( "Pnt " ); desc10.putObject( idPstn, idPnt, desc11 ); var idOfst = charIDToTypeID( "Ofst" ); var desc12 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc12.putUnitDouble( idHrzn, idRlt, -0.000010 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc12.putUnitDouble( idVrtc, idRlt, 0.114738 ); var idOfst = charIDToTypeID( "Ofst" ); desc10.putObject( idOfst, idOfst, desc12 ); var idWdth = charIDToTypeID( "Wdth" ); var idPrc = charIDToTypeID( "#Prc" ); desc10.putUnitDouble( idWdth, idPrc, 99.837393 ); var idHght = charIDToTypeID( "Hght" ); var idPrc = charIDToTypeID( "#Prc" ); desc10.putUnitDouble( idHght, idPrc, 88.540682 ); var idSkew = charIDToTypeID( "Skew" ); var desc13 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idAng = charIDToTypeID( "#Ang" ); desc13.putUnitDouble( idHrzn, idAng, -0.004757 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idAng = charIDToTypeID( "#Ang" ); desc13.putUnitDouble( idVrtc, idAng, 0.000000 ); var idPnt = charIDToTypeID( "Pnt " ); desc10.putObject( idSkew, idPnt, desc13 ); var idUsng = charIDToTypeID( "Usng" ); var desc14 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idPrc = charIDToTypeID( "#Prc" ); desc14.putUnitDouble( idHrzn, idPrc, -0.000000 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idPrc = charIDToTypeID( "#Prc" ); desc14.putUnitDouble( idVrtc, idPrc, 0.015930 ); var idPnt = charIDToTypeID( "Pnt " ); desc10.putObject( idUsng, idPnt, desc14 ); var idIntr = charIDToTypeID( "Intr" ); var idIntp = charIDToTypeID( "Intp" ); var idBcbc = charIDToTypeID( "Bcbc" ); desc10.putEnumerated( idIntr, idIntp, idBcbc ); executeAction( idTrnf, desc10, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc15 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref12 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref12.putProperty( idChnl, idfsel ); desc15.putReference( idnull, ref12 ); var idT = charIDToTypeID( "T " ); var idOrdn = charIDToTypeID( "Ordn" ); var idNone = charIDToTypeID( "None" ); desc15.putEnumerated( idT, idOrdn, idNone ); executeAction( idsetd, desc15, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc16 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref13 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref13.putName( idLyr, "Layer 1" ); desc16.putReference( idnull, ref13 ); var idselectionModifier = stringIDToTypeID( "selectionModifier" ); var idselectionModifierType = stringIDToTypeID( "selectionModifierType" ); var idaddToSelection = stringIDToTypeID( "addToSelection" ); desc16.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection ); var idMkVs = charIDToTypeID( "MkVs" ); desc16.putBoolean( idMkVs, false ); executeAction( idslct, desc16, DialogModes.NO ); // ======================================================= var idMrgtwo = charIDToTypeID( "Mrg2" ); var desc17 = new ActionDescriptor(); executeAction( idMrgtwo, desc17, DialogModes.NO ); // ======================================================= var idHd = charIDToTypeID( "Hd " ); var desc18 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list5 = new ActionList(); var ref14 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref14.putEnumerated( idLyr, idOrdn, idTrgt ); list5.putReference( ref14 ); desc18.putList( idnull, list5 ); executeAction( idHd, desc18, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc19 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref15 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref15.putProperty( idChnl, idfsel ); desc19.putReference( idnull, ref15 ); var idT = charIDToTypeID( "T " ); var ref16 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref16.putName( idChnl, "Cima" ); desc19.putReference( idT, ref16 ); executeAction( idsetd, desc19, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc20 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref17 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref17.putName( idLyr, "8" ); desc20.putReference( idnull, ref17 ); var idMkVs = charIDToTypeID( "MkVs" ); desc20.putBoolean( idMkVs, false ); executeAction( idslct, desc20, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc21 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref18 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref18.putName( idLyr, "9 copy 3" ); desc21.putReference( idnull, ref18 ); var idMkVs = charIDToTypeID( "MkVs" ); desc21.putBoolean( idMkVs, false ); executeAction( idslct, desc21, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc22 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref19 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref19.putProperty( idChnl, idfsel ); desc22.putReference( idnull, ref19 ); var idT = charIDToTypeID( "T " ); var ref20 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref20.putName( idChnl, "Cima" ); desc22.putReference( idT, ref20 ); executeAction( idsetd, desc22, DialogModes.NO ); // ======================================================= var idTrnf = charIDToTypeID( "Trnf" ); var desc23 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref21 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref21.putEnumerated( idLyr, idOrdn, idTrgt ); desc23.putReference( idnull, ref21 ); var idFTcs = charIDToTypeID( "FTcs" ); var idQCSt = charIDToTypeID( "QCSt" ); var idQcsi = charIDToTypeID( "Qcsi" ); desc23.putEnumerated( idFTcs, idQCSt, idQcsi ); var idPstn = charIDToTypeID( "Pstn" ); var desc24 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc24.putUnitDouble( idHrzn, idRlt, 300.462431 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc24.putUnitDouble( idVrtc, idRlt, 387.951492 ); var idPnt = charIDToTypeID( "Pnt " ); desc23.putObject( idPstn, idPnt, desc24 ); var idOfst = charIDToTypeID( "Ofst" ); var desc25 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc25.putUnitDouble( idHrzn, idRlt, 0.001000 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc25.putUnitDouble( idVrtc, idRlt, -0.391377 ); var idOfst = charIDToTypeID( "Ofst" ); desc23.putObject( idOfst, idOfst, desc25 ); var idWdth = charIDToTypeID( "Wdth" ); var idPrc = charIDToTypeID( "#Prc" ); desc23.putUnitDouble( idWdth, idPrc, 100.058158 ); var idHght = charIDToTypeID( "Hght" ); var idPrc = charIDToTypeID( "#Prc" ); desc23.putUnitDouble( idHght, idPrc, 69.600548 ); var idSkew = charIDToTypeID( "Skew" ); var desc26 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idAng = charIDToTypeID( "#Ang" ); desc26.putUnitDouble( idHrzn, idAng, 0.000455 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idAng = charIDToTypeID( "#Ang" ); desc26.putUnitDouble( idVrtc, idAng, 0.000000 ); var idPnt = charIDToTypeID( "Pnt " ); desc23.putObject( idSkew, idPnt, desc26 ); var idUsng = charIDToTypeID( "Usng" ); var desc27 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idPrc = charIDToTypeID( "#Prc" ); desc27.putUnitDouble( idHrzn, idPrc, -0.000000 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idPrc = charIDToTypeID( "#Prc" ); desc27.putUnitDouble( idVrtc, idPrc, 0.029278 ); var idPnt = charIDToTypeID( "Pnt " ); desc23.putObject( idUsng, idPnt, desc27 ); var idIntr = charIDToTypeID( "Intr" ); var idIntp = charIDToTypeID( "Intp" ); var idBcbc = charIDToTypeID( "Bcbc" ); desc23.putEnumerated( idIntr, idIntp, idBcbc ); executeAction( idTrnf, desc23, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc28 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref22 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref22.putProperty( idChnl, idfsel ); desc28.putReference( idnull, ref22 ); var idT = charIDToTypeID( "T " ); var idOrdn = charIDToTypeID( "Ordn" ); var idNone = charIDToTypeID( "None" ); desc28.putEnumerated( idT, idOrdn, idNone ); executeAction( idsetd, desc28, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc29 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref23 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref23.putName( idLyr, "Layer 1" ); desc29.putReference( idnull, ref23 ); var idselectionModifier = stringIDToTypeID( "selectionModifier" ); var idselectionModifierType = stringIDToTypeID( "selectionModifierType" ); var idaddToSelection = stringIDToTypeID( "addToSelection" ); desc29.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection ); var idMkVs = charIDToTypeID( "MkVs" ); desc29.putBoolean( idMkVs, false ); executeAction( idslct, desc29, DialogModes.NO ); // ======================================================= var idMrgtwo = charIDToTypeID( "Mrg2" ); var desc30 = new ActionDescriptor(); executeAction( idMrgtwo, desc30, DialogModes.NO ); // ======================================================= var idHd = charIDToTypeID( "Hd " ); var desc31 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list6 = new ActionList(); var ref24 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref24.putEnumerated( idLyr, idOrdn, idTrgt ); list6.putReference( ref24 ); desc31.putList( idnull, list6 ); executeAction( idHd, desc31, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc32 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref25 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref25.putProperty( idChnl, idfsel ); desc32.putReference( idnull, ref25 ); var idT = charIDToTypeID( "T " ); var ref26 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref26.putName( idChnl, "Cima" ); desc32.putReference( idT, ref26 ); executeAction( idsetd, desc32, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc33 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref27 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref27.putName( idLyr, "8" ); desc33.putReference( idnull, ref27 ); var idMkVs = charIDToTypeID( "MkVs" ); desc33.putBoolean( idMkVs, false ); executeAction( idslct, desc33, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc34 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref28 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref28.putName( idLyr, "9 copy 2" ); desc34.putReference( idnull, ref28 ); var idMkVs = charIDToTypeID( "MkVs" ); desc34.putBoolean( idMkVs, false ); executeAction( idslct, desc34, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc35 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref29 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref29.putProperty( idChnl, idfsel ); desc35.putReference( idnull, ref29 ); var idT = charIDToTypeID( "T " ); var ref30 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref30.putName( idChnl, "Cima" ); desc35.putReference( idT, ref30 ); executeAction( idsetd, desc35, DialogModes.NO ); // ======================================================= var idTrnf = charIDToTypeID( "Trnf" ); var desc36 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref31 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref31.putEnumerated( idLyr, idOrdn, idTrgt ); desc36.putReference( idnull, ref31 ); var idFTcs = charIDToTypeID( "FTcs" ); var idQCSt = charIDToTypeID( "QCSt" ); var idQcsi = charIDToTypeID( "Qcsi" ); desc36.putEnumerated( idFTcs, idQCSt, idQcsi ); var idPstn = charIDToTypeID( "Pstn" ); var desc37 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc37.putUnitDouble( idHrzn, idRlt, 300.462431 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc37.putUnitDouble( idVrtc, idRlt, 388.951367 ); var idPnt = charIDToTypeID( "Pnt " ); desc36.putObject( idPstn, idPnt, desc37 ); var idOfst = charIDToTypeID( "Ofst" ); var desc38 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc38.putUnitDouble( idHrzn, idRlt, 0.000167 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc38.putUnitDouble( idVrtc, idRlt, -0.337637 ); var idOfst = charIDToTypeID( "Ofst" ); desc36.putObject( idOfst, idOfst, desc38 ); var idWdth = charIDToTypeID( "Wdth" ); var idPrc = charIDToTypeID( "#Prc" ); desc36.putUnitDouble( idWdth, idPrc, 99.888141 ); var idHght = charIDToTypeID( "Hght" ); var idPrc = charIDToTypeID( "#Prc" ); desc36.putUnitDouble( idHght, idPrc, 33.767872 ); var idSkew = charIDToTypeID( "Skew" ); var desc39 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idAng = charIDToTypeID( "#Ang" ); desc39.putUnitDouble( idHrzn, idAng, -0.028376 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idAng = charIDToTypeID( "#Ang" ); desc39.putUnitDouble( idVrtc, idAng, 0.000000 ); var idPnt = charIDToTypeID( "Pnt " ); desc36.putObject( idSkew, idPnt, desc39 ); var idUsng = charIDToTypeID( "Usng" ); var desc40 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idPrc = charIDToTypeID( "#Prc" ); desc40.putUnitDouble( idHrzn, idPrc, -0.000000 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idPrc = charIDToTypeID( "#Prc" ); desc40.putUnitDouble( idVrtc, idPrc, 0.042057 ); var idPnt = charIDToTypeID( "Pnt " ); desc36.putObject( idUsng, idPnt, desc40 ); var idIntr = charIDToTypeID( "Intr" ); var idIntp = charIDToTypeID( "Intp" ); var idBcbc = charIDToTypeID( "Bcbc" ); desc36.putEnumerated( idIntr, idIntp, idBcbc ); executeAction( idTrnf, desc36, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc41 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref32 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref32.putProperty( idChnl, idfsel ); desc41.putReference( idnull, ref32 ); var idT = charIDToTypeID( "T " ); var idOrdn = charIDToTypeID( "Ordn" ); var idNone = charIDToTypeID( "None" ); desc41.putEnumerated( idT, idOrdn, idNone ); executeAction( idsetd, desc41, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc42 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref33 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref33.putName( idLyr, "Layer 1" ); desc42.putReference( idnull, ref33 ); var idselectionModifier = stringIDToTypeID( "selectionModifier" ); var idselectionModifierType = stringIDToTypeID( "selectionModifierType" ); var idaddToSelection = stringIDToTypeID( "addToSelection" ); desc42.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection ); var idMkVs = charIDToTypeID( "MkVs" ); desc42.putBoolean( idMkVs, false ); executeAction( idslct, desc42, DialogModes.NO ); // ======================================================= var idMrgtwo = charIDToTypeID( "Mrg2" ); var desc43 = new ActionDescriptor(); executeAction( idMrgtwo, desc43, DialogModes.NO ); // ======================================================= var idHd = charIDToTypeID( "Hd " ); var desc44 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list7 = new ActionList(); var ref34 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref34.putEnumerated( idLyr, idOrdn, idTrgt ); list7.putReference( ref34 ); desc44.putList( idnull, list7 ); executeAction( idHd, desc44, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc45 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref35 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref35.putName( idLyr, "9" ); desc45.putReference( idnull, ref35 ); var idMkVs = charIDToTypeID( "MkVs" ); desc45.putBoolean( idMkVs, false ); executeAction( idslct, desc45, DialogModes.NO ); // ======================================================= var idDlt = charIDToTypeID( "Dlt " ); var desc46 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref36 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref36.putEnumerated( idLyr, idOrdn, idTrgt ); desc46.putReference( idnull, ref36 ); executeAction( idDlt, desc46, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idmove = charIDToTypeID( "move" ); var desc47 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref37 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref37.putEnumerated( idLyr, idOrdn, idTrgt ); desc47.putReference( idnull, ref37 ); var idT = charIDToTypeID( "T " ); var ref38 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref38.putIndex( idLyr, 12 ); desc47.putReference( idT, ref38 ); var idAdjs = charIDToTypeID( "Adjs" ); desc47.putBoolean( idAdjs, false ); var idVrsn = charIDToTypeID( "Vrsn" ); desc47.putInteger( idVrsn, 5 ); executeAction( idmove, desc47, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc48 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref39 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref39.putProperty( idChnl, idfsel ); desc48.putReference( idnull, ref39 ); var idT = charIDToTypeID( "T " ); var ref40 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref40.putName( idChnl, "Baixo" ); desc48.putReference( idT, ref40 ); executeAction( idsetd, desc48, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc49 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref41 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref41.putName( idLyr, "9 copy" ); desc49.putReference( idnull, ref41 ); var idMkVs = charIDToTypeID( "MkVs" ); desc49.putBoolean( idMkVs, false ); executeAction( idslct, desc49, DialogModes.NO ); // ======================================================= var idCpTL = charIDToTypeID( "CpTL" ); executeAction( idCpTL, undefined, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc50 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref42 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref42.putName( idLyr, "8 copy" ); desc50.putReference( idnull, ref42 ); var idMkVs = charIDToTypeID( "MkVs" ); desc50.putBoolean( idMkVs, false ); executeAction( idslct, desc50, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc51 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref43 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref43.putProperty( idChnl, idfsel ); desc51.putReference( idnull, ref43 ); var idT = charIDToTypeID( "T " ); var ref44 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); ref44.putName( idChnl, "Baixo" ); desc51.putReference( idT, ref44 ); executeAction( idsetd, desc51, DialogModes.NO ); // ======================================================= var idTrnf = charIDToTypeID( "Trnf" ); var desc52 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref45 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref45.putEnumerated( idLyr, idOrdn, idTrgt ); desc52.putReference( idnull, ref45 ); var idFTcs = charIDToTypeID( "FTcs" ); var idQCSt = charIDToTypeID( "QCSt" ); var idQcsi = charIDToTypeID( "Qcsi" ); desc52.putEnumerated( idFTcs, idQCSt, idQcsi ); var idPstn = charIDToTypeID( "Pstn" ); var desc53 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc53.putUnitDouble( idHrzn, idRlt, 300.462431 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc53.putUnitDouble( idVrtc, idRlt, 409.948741 ); var idPnt = charIDToTypeID( "Pnt " ); desc52.putObject( idPstn, idPnt, desc53 ); var idOfst = charIDToTypeID( "Ofst" ); var desc54 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idRlt = charIDToTypeID( "#Rlt" ); desc54.putUnitDouble( idHrzn, idRlt, 0.000000 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idRlt = charIDToTypeID( "#Rlt" ); desc54.putUnitDouble( idVrtc, idRlt, 0.000000 ); var idOfst = charIDToTypeID( "Ofst" ); desc52.putObject( idOfst, idOfst, desc54 ); var idWdth = charIDToTypeID( "Wdth" ); var idPrc = charIDToTypeID( "#Prc" ); desc52.putUnitDouble( idWdth, idPrc, 99.924370 ); var idHght = charIDToTypeID( "Hght" ); var idPrc = charIDToTypeID( "#Prc" ); desc52.putUnitDouble( idHght, idPrc, 43.445378 ); var idSkew = charIDToTypeID( "Skew" ); var desc55 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idAng = charIDToTypeID( "#Ang" ); desc55.putUnitDouble( idHrzn, idAng, 0.009548 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idAng = charIDToTypeID( "#Ang" ); desc55.putUnitDouble( idVrtc, idAng, 0.000000 ); var idPnt = charIDToTypeID( "Pnt " ); desc52.putObject( idSkew, idPnt, desc55 ); var idUsng = charIDToTypeID( "Usng" ); var desc56 = new ActionDescriptor(); var idHrzn = charIDToTypeID( "Hrzn" ); var idPrc = charIDToTypeID( "#Prc" ); desc56.putUnitDouble( idHrzn, idPrc, -0.000000 ); var idVrtc = charIDToTypeID( "Vrtc" ); var idPrc = charIDToTypeID( "#Prc" ); desc56.putUnitDouble( idVrtc, idPrc, -0.037036 ); var idPnt = charIDToTypeID( "Pnt " ); desc52.putObject( idUsng, idPnt, desc56 ); var idIntr = charIDToTypeID( "Intr" ); var idIntp = charIDToTypeID( "Intp" ); var idBcbc = charIDToTypeID( "Bcbc" ); desc52.putEnumerated( idIntr, idIntp, idBcbc ); executeAction( idTrnf, desc52, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc57 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref46 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idfsel = charIDToTypeID( "fsel" ); ref46.putProperty( idChnl, idfsel ); desc57.putReference( idnull, ref46 ); var idT = charIDToTypeID( "T " ); var idOrdn = charIDToTypeID( "Ordn" ); var idNone = charIDToTypeID( "None" ); desc57.putEnumerated( idT, idOrdn, idNone ); executeAction( idsetd, desc57, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc58 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref47 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref47.putName( idLyr, "Layer 1" ); desc58.putReference( idnull, ref47 ); var idselectionModifier = stringIDToTypeID( "selectionModifier" ); var idselectionModifierType = stringIDToTypeID( "selectionModifierType" ); var idaddToSelection = stringIDToTypeID( "addToSelection" ); desc58.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection ); var idMkVs = charIDToTypeID( "MkVs" ); desc58.putBoolean( idMkVs, false ); executeAction( idslct, desc58, DialogModes.NO ); // ======================================================= var idMrgtwo = charIDToTypeID( "Mrg2" ); var desc59 = new ActionDescriptor(); executeAction( idMrgtwo, desc59, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc60 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref48 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref48.putName( idLyr, "9 copy" ); desc60.putReference( idnull, ref48 ); var idMkVs = charIDToTypeID( "MkVs" ); desc60.putBoolean( idMkVs, false ); executeAction( idslct, desc60, DialogModes.NO ); // ======================================================= var idDlt = charIDToTypeID( "Dlt " ); var desc61 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref49 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref49.putEnumerated( idLyr, idOrdn, idTrgt ); desc61.putReference( idnull, ref49 ); executeAction( idDlt, desc61, DialogModes.NO ); // ======================================================= var idHd = charIDToTypeID( "Hd " ); var desc62 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var list8 = new ActionList(); var ref50 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref50.putName( idLyr, "8 copy" ); list8.putReference( ref50 ); desc62.putList( idnull, list8 ); executeAction( idHd, desc62, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc63 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref51 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref51.putName( idLyr, "8 copy" ); desc63.putReference( idnull, ref51 ); var idMkVs = charIDToTypeID( "MkVs" ); desc63.putBoolean( idMkVs, false ); executeAction( idslct, desc63, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc64 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref52 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref52.putEnumerated( idLyr, idOrdn, idTrgt ); desc64.putReference( idnull, ref52 ); var idT = charIDToTypeID( "T " ); var desc65 = new ActionDescriptor(); var idNm = charIDToTypeID( "Nm " ); desc65.putString( idNm, """91""" ); var idLyr = charIDToTypeID( "Lyr " ); desc64.putObject( idT, idLyr, desc65 ); executeAction( idsetd, desc64, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc66 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref53 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref53.putName( idLyr, "9 copy 2" ); desc66.putReference( idnull, ref53 ); var idMkVs = charIDToTypeID( "MkVs" ); desc66.putBoolean( idMkVs, false ); executeAction( idslct, desc66, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc67 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref54 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref54.putEnumerated( idLyr, idOrdn, idTrgt ); desc67.putReference( idnull, ref54 ); var idT = charIDToTypeID( "T " ); var desc68 = new ActionDescriptor(); var idNm = charIDToTypeID( "Nm " ); desc68.putString( idNm, """92""" ); var idLyr = charIDToTypeID( "Lyr " ); desc67.putObject( idT, idLyr, desc68 ); executeAction( idsetd, desc67, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc69 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref55 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref55.putName( idLyr, "9 copy 3" ); desc69.putReference( idnull, ref55 ); var idMkVs = charIDToTypeID( "MkVs" ); desc69.putBoolean( idMkVs, false ); executeAction( idslct, desc69, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc70 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref56 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref56.putEnumerated( idLyr, idOrdn, idTrgt ); desc70.putReference( idnull, ref56 ); var idT = charIDToTypeID( "T " ); var desc71 = new ActionDescriptor(); var idNm = charIDToTypeID( "Nm " ); desc71.putString( idNm, """93""" ); var idLyr = charIDToTypeID( "Lyr " ); desc70.putObject( idT, idLyr, desc71 ); executeAction( idsetd, desc70, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc72 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref57 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref57.putName( idLyr, "9 copy 4" ); desc72.putReference( idnull, ref57 ); var idMkVs = charIDToTypeID( "MkVs" ); desc72.putBoolean( idMkVs, false ); executeAction( idslct, desc72, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc73 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref58 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref58.putEnumerated( idLyr, idOrdn, idTrgt ); desc73.putReference( idnull, ref58 ); var idT = charIDToTypeID( "T " ); var desc74 = new ActionDescriptor(); var idNm = charIDToTypeID( "Nm " ); desc74.putString( idNm, """94""" ); var idLyr = charIDToTypeID( "Lyr " ); desc73.putObject( idT, idLyr, desc74 ); executeAction( idsetd, desc73, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc75 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref59 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref59.putName( idLyr, "9 copy 5" ); desc75.putReference( idnull, ref59 ); var idMkVs = charIDToTypeID( "MkVs" ); desc75.putBoolean( idMkVs, false ); executeAction( idslct, desc75, DialogModes.NO ); // ======================================================= var idsetd = charIDToTypeID( "setd" ); var desc76 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref60 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref60.putEnumerated( idLyr, idOrdn, idTrgt ); desc76.putReference( idnull, ref60 ); var idT = charIDToTypeID( "T " ); var desc77 = new ActionDescriptor(); var idNm = charIDToTypeID( "Nm " ); desc77.putString( idNm, """95""" ); var idLyr = charIDToTypeID( "Lyr " ); desc76.putObject( idT, idLyr, desc77 ); executeAction( idsetd, desc76, DialogModes.NO ); // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc78 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref61 = new ActionReference(); var idLyr = charIDToTypeID( "Lyr " ); ref61.putName( idLyr, "8" ); desc78.putReference( idnull, ref61 ); var idMkVs = charIDToTypeID( "MkVs" ); desc78.putBoolean( idMkVs, false ); executeAction( idslct, desc78, DialogModes.NO ); Above script is working without error and can make the first set of plates, number 9 to 8. I have few questions: 1 - How to put ScriptListenerON and OFF as a menu item of PS GUI? 2 - Variable desc starts by 1. Can I delete some actions, leaving absents of numbers among the entire code? After fix all things, I'll copy this block of code and change layers name to make all nine remaining numbers. Note: I realized that moving layer position is also absolut number, not logical. I mean, if I have 10 layers and move layer "2" to layer "3" position, PS move by position considering not the layer name. Still studying...
... View more