4 Replies Latest reply on Jan 7, 2015 4:14 AM by Purmpol

    How can I make different color on text in the same layer "by script" ?

    Purmpol

      [Photoshop CC 2014]
      I need to write JavaScript  to make different color on the texts (or contents) that's in the same text layer. But I can't still find the way.

       

      example from ...

      ABC1.jpg

      to ...

      ABC2.jpg

      I have been searching for this solution on the internet for a half of day, but I can't find it.
      Help me please...

        • 1. Re: How can I make different color on text in the same layer "by script" ?
          JJMack Most Valuable Participant

          You may need to use Action Manager Code have you looked at what get recorded by the  scriplistener plugin when you add your mixed colored text layer.

          • 2. Re: How can I make different color on text in the same layer "by script" ?
            Purmpol Level 1

            Hello JJMack
            I'm new to the script programming. When I read the script from the listener's output file, I feel so dizzy.
            However, thanks for your advice. And I will put more effort to do this again.

            • 3. Re: How can I make different color on text in the same layer "by script" ?
              Purmpol Level 1

              I've tried so many times. For simple operation about changing Text color (or format), PS generates huge codes as below.
              Perharps I have to spend all day or (a few days), to understand them.


              // =======================================================

              var idsetd = charIDToTypeID( "setd" );

                  var desc118 = new ActionDescriptor();

                  var idnull = charIDToTypeID( "null" );

                      var ref21 = new ActionReference();

                      var idTxLr = charIDToTypeID( "TxLr" );

                      var idOrdn = charIDToTypeID( "Ordn" );

                      var idTrgt = charIDToTypeID( "Trgt" );

                      ref21.putEnumerated( idTxLr, idOrdn, idTrgt );

                  desc118.putReference( idnull, ref21 );

                  var idT = charIDToTypeID( "T   " );

                      var desc119 = new ActionDescriptor();

                      var idTxt = charIDToTypeID( "Txt " );

                      desc119.putString( idTxt, """ABC""" );

                      var idwarp = stringIDToTypeID( "warp" );

                          var desc120 = new ActionDescriptor();

                          var idwarpStyle = stringIDToTypeID( "warpStyle" );

                          var idwarpStyle = stringIDToTypeID( "warpStyle" );

                          var idwarpNone = stringIDToTypeID( "warpNone" );

                          desc120.putEnumerated( idwarpStyle, idwarpStyle, idwarpNone );

                          var idwarpValue = stringIDToTypeID( "warpValue" );

                          desc120.putDouble( idwarpValue, 0.000000 );

                          var idwarpPerspective = stringIDToTypeID( "warpPerspective" );

                          desc120.putDouble( idwarpPerspective, 0.000000 );

                          var idwarpPerspectiveOther = stringIDToTypeID( "warpPerspectiveOther" );

                          desc120.putDouble( idwarpPerspectiveOther, 0.000000 );

                          var idwarpRotate = stringIDToTypeID( "warpRotate" );

                          var idOrnt = charIDToTypeID( "Ornt" );

                          var idHrzn = charIDToTypeID( "Hrzn" );

                          desc120.putEnumerated( idwarpRotate, idOrnt, idHrzn );

                      var idwarp = stringIDToTypeID( "warp" );

                      desc119.putObject( idwarp, idwarp, desc120 );

                      var idtextGridding = stringIDToTypeID( "textGridding" );

                      var idtextGridding = stringIDToTypeID( "textGridding" );

                      var idNone = charIDToTypeID( "None" );

                      desc119.putEnumerated( idtextGridding, idtextGridding, idNone );

                      var idOrnt = charIDToTypeID( "Ornt" );

                      var idOrnt = charIDToTypeID( "Ornt" );

                      var idVrtc = charIDToTypeID( "Vrtc" );

                      desc119.putEnumerated( idOrnt, idOrnt, idVrtc );

                      var idAntA = charIDToTypeID( "AntA" );

                      var idAnnt = charIDToTypeID( "Annt" );

                      var idAnCr = charIDToTypeID( "AnCr" );

                      desc119.putEnumerated( idAntA, idAnnt, idAnCr );

                      var idbounds = stringIDToTypeID( "bounds" );

                          var desc121 = new ActionDescriptor();

                          var idLeft = charIDToTypeID( "Left" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc121.putUnitDouble( idLeft, idPnt, -36.000008 );

                          var idTop = charIDToTypeID( "Top " );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc121.putUnitDouble( idTop, idPnt, -0.000002 );

                          var idRght = charIDToTypeID( "Rght" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc121.putUnitDouble( idRght, idPnt, 36.000000 );

                          var idBtom = charIDToTypeID( "Btom" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc121.putUnitDouble( idBtom, idPnt, 216.000000 );

                      var idbounds = stringIDToTypeID( "bounds" );

                      desc119.putObject( idbounds, idbounds, desc121 );

                      var idboundingBox = stringIDToTypeID( "boundingBox" );

                          var desc122 = new ActionDescriptor();

                          var idLeft = charIDToTypeID( "Left" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc122.putUnitDouble( idLeft, idPnt, -25.451172 );

                          var idTop = charIDToTypeID( "Top " );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc122.putUnitDouble( idTop, idPnt, 10.834839 );

                          var idRght = charIDToTypeID( "Rght" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc122.putUnitDouble( idRght, idPnt, 25.189453 );

                          var idBtom = charIDToTypeID( "Btom" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc122.putUnitDouble( idBtom, idPnt, 204.834839 );

                      var idboundingBox = stringIDToTypeID( "boundingBox" );

                      desc119.putObject( idboundingBox, idboundingBox, desc122 );

                      var idtextShape = stringIDToTypeID( "textShape" );

                          var list19 = new ActionList();

                              var desc123 = new ActionDescriptor();

                              var idTEXT = charIDToTypeID( "TEXT" );

                              var idTEXT = charIDToTypeID( "TEXT" );

                              var idPnt = charIDToTypeID( "Pnt " );

                              desc123.putEnumerated( idTEXT, idTEXT, idPnt );

                              var idOrnt = charIDToTypeID( "Ornt" );

                              var idOrnt = charIDToTypeID( "Ornt" );

                              var idVrtc = charIDToTypeID( "Vrtc" );

                              desc123.putEnumerated( idOrnt, idOrnt, idVrtc );

                              var idTrnf = charIDToTypeID( "Trnf" );

                                  var desc124 = new ActionDescriptor();

                                  var idxx = stringIDToTypeID( "xx" );

                                  desc124.putDouble( idxx, 1.000000 );

                                  var idxy = stringIDToTypeID( "xy" );

                                  desc124.putDouble( idxy, 0.000000 );

                                  var idyx = stringIDToTypeID( "yx" );

                                  desc124.putDouble( idyx, 0.000000 );

                                  var idyy = stringIDToTypeID( "yy" );

                                  desc124.putDouble( idyy, 1.000000 );

                                  var idtx = stringIDToTypeID( "tx" );

                                  desc124.putDouble( idtx, 0.000000 );

                                  var idty = stringIDToTypeID( "ty" );

                                  desc124.putDouble( idty, 0.000000 );

                              var idTrnf = charIDToTypeID( "Trnf" );

                              desc123.putObject( idTrnf, idTrnf, desc124 );

                              var idrowCount = stringIDToTypeID( "rowCount" );

                              desc123.putInteger( idrowCount, 1 );

                              var idcolumnCount = stringIDToTypeID( "columnCount" );

                              desc123.putInteger( idcolumnCount, 1 );

                              var idrowMajorOrder = stringIDToTypeID( "rowMajorOrder" );

                              desc123.putBoolean( idrowMajorOrder, true );

                              var idrowGutter = stringIDToTypeID( "rowGutter" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc123.putUnitDouble( idrowGutter, idPnt, 0.000000 );

                              var idcolumnGutter = stringIDToTypeID( "columnGutter" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc123.putUnitDouble( idcolumnGutter, idPnt, 0.000000 );

                              var idSpcn = charIDToTypeID( "Spcn" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc123.putUnitDouble( idSpcn, idPnt, 0.000000 );

                              var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );

                              var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );

                              var idalignByAscent = stringIDToTypeID( "alignByAscent" );

                              desc123.putEnumerated( idframeBaselineAlignment, idframeBaselineAlignment, idalignByAscent );

                              var idfirstBaselineMinimum = stringIDToTypeID( "firstBaselineMinimum" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc123.putUnitDouble( idfirstBaselineMinimum, idPnt, 0.000000 );

                              var idbase = stringIDToTypeID( "base" );

                                  var desc125 = new ActionDescriptor();

                                  var idHrzn = charIDToTypeID( "Hrzn" );

                                  desc125.putDouble( idHrzn, 0.000000 );

                                  var idVrtc = charIDToTypeID( "Vrtc" );

                                  desc125.putDouble( idVrtc, 0.000000 );

                              var idPnt = charIDToTypeID( "Pnt " );

                              desc123.putObject( idbase, idPnt, desc125 );

                          var idtextShape = stringIDToTypeID( "textShape" );

                          list19.putObject( idtextShape, desc123 );

                      desc119.putList( idtextShape, list19 );

                      var idTxtt = charIDToTypeID( "Txtt" );

                          var list20 = new ActionList();

                              var desc126 = new ActionDescriptor();

                              var idFrom = charIDToTypeID( "From" );

                              desc126.putInteger( idFrom, 0 );

                              var idT = charIDToTypeID( "T   " );

                              desc126.putInteger( idT, 1 );

                              var idTxtS = charIDToTypeID( "TxtS" );

                                  var desc127 = new ActionDescriptor();

                                  var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                                  desc127.putBoolean( idstyleSheetHasParent, true );

                                  var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

                                  desc127.putString( idfontPostScriptName, """TimesNewRomanPSMT""" );

                                  var idFntN = charIDToTypeID( "FntN" );

                                  desc127.putString( idFntN, """Times New Roman""" );

                                  var idFntS = charIDToTypeID( "FntS" );

                                  desc127.putString( idFntS, """Regular""" );

                                  var idScrp = charIDToTypeID( "Scrp" );

                                  desc127.putInteger( idScrp, 0 );

                                  var idFntT = charIDToTypeID( "FntT" );

                                  desc127.putInteger( idFntT, 1 );

                                  var idSz = charIDToTypeID( "Sz  " );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc127.putUnitDouble( idSz, idPnt, 72.000000 );

                                  var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc127.putUnitDouble( idimpliedFontSize, idPnt, 72.000000 );

                                  var iddigitSet = stringIDToTypeID( "digitSet" );

                                  var iddigitSet = stringIDToTypeID( "digitSet" );

                                  var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                                  desc127.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                                  var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc127.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );

                                  var idClr = charIDToTypeID( "Clr " );

                                      var desc128 = new ActionDescriptor();

                                      var idRd = charIDToTypeID( "Rd  " );

                                      desc128.putDouble( idRd, 99.998474 );

                                      var idGrn = charIDToTypeID( "Grn " );

                                      desc128.putDouble( idGrn, 99.998474 );

                                      var idBl = charIDToTypeID( "Bl  " );

                                      desc128.putDouble( idBl, 99.998474 );

                                  var idRGBC = charIDToTypeID( "RGBC" );

                                  desc127.putObject( idClr, idRGBC, desc128 );

                                  var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                      var desc129 = new ActionDescriptor();

                                      var idRd = charIDToTypeID( "Rd  " );

                                      desc129.putDouble( idRd, 255.000000 );

                                      var idGrn = charIDToTypeID( "Grn " );

                                      desc129.putDouble( idGrn, 255.000000 );

                                      var idBl = charIDToTypeID( "Bl  " );

                                      desc129.putDouble( idBl, 255.000000 );

                                  var idRGBC = charIDToTypeID( "RGBC" );

                                  desc127.putObject( idstrokeColor, idRGBC, desc129 );

                                  var idbaseParentStyle = stringIDToTypeID( "baseParentStyle" );

                                      var desc130 = new ActionDescriptor();

                                      var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

                                      desc130.putString( idfontPostScriptName, """MyriadPro-Regular""" );

                                      var idFntN = charIDToTypeID( "FntN" );

                                      desc130.putString( idFntN, """Myriad Pro""" );

                                      var idFntS = charIDToTypeID( "FntS" );

                                      desc130.putString( idFntS, """Regular""" );

                                      var idScrp = charIDToTypeID( "Scrp" );

                                      desc130.putInteger( idScrp, 0 );

                                      var idFntT = charIDToTypeID( "FntT" );

                                      desc130.putInteger( idFntT, 0 );

                                      var idSz = charIDToTypeID( "Sz  " );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idSz, idPnt, 12.000000 );

                                      var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idimpliedFontSize, idPnt, 12.000000 );

                                      var idHrzS = charIDToTypeID( "HrzS" );

                                      desc130.putDouble( idHrzS, 100.000000 );

                                      var idVrtS = charIDToTypeID( "VrtS" );

                                      desc130.putDouble( idVrtS, 100.000000 );

                                      var idsyntheticBold = stringIDToTypeID( "syntheticBold" );

                                      desc130.putBoolean( idsyntheticBold, false );

                                      var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );

                                      desc130.putBoolean( idsyntheticItalic, false );

                                      var idautoLeading = stringIDToTypeID( "autoLeading" );

                                      desc130.putBoolean( idautoLeading, true );

                                      var idTrck = charIDToTypeID( "Trck" );

                                      desc130.putInteger( idTrck, 0 );

                                      var idBsln = charIDToTypeID( "Bsln" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idBsln, idPnt, 0.000000 );

                                      var idimpliedBaselineShift = stringIDToTypeID( "impliedBaselineShift" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idimpliedBaselineShift, idPnt, 0.000000 );

                                      var idcharacterRotation = stringIDToTypeID( "characterRotation" );

                                      desc130.putDouble( idcharacterRotation, 0.000000 );

                                      var idAtKr = charIDToTypeID( "AtKr" );

                                      var idAtKr = charIDToTypeID( "AtKr" );

                                      var idmetricsKern = stringIDToTypeID( "metricsKern" );

                                      desc130.putEnumerated( idAtKr, idAtKr, idmetricsKern );

                                      var idfontCaps = stringIDToTypeID( "fontCaps" );

                                      var idfontCaps = stringIDToTypeID( "fontCaps" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc130.putEnumerated( idfontCaps, idfontCaps, idNrml );

                                      var iddigitSet = stringIDToTypeID( "digitSet" );

                                      var iddigitSet = stringIDToTypeID( "digitSet" );

                                      var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                                      desc130.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                                      var iddirOverride = stringIDToTypeID( "dirOverride" );

                                      var iddirOverride = stringIDToTypeID( "dirOverride" );

                                      var iddirOverrideDefault = stringIDToTypeID( "dirOverrideDefault" );

                                      desc130.putEnumerated( iddirOverride, iddirOverride, iddirOverrideDefault );

                                      var idkashidas = stringIDToTypeID( "kashidas" );

                                      var idkashidas = stringIDToTypeID( "kashidas" );

                                      var idkashidaDefault = stringIDToTypeID( "kashidaDefault" );

                                      desc130.putEnumerated( idkashidas, idkashidas, idkashidaDefault );

                                      var iddiacVPos = stringIDToTypeID( "diacVPos" );

                                      var iddiacVPos = stringIDToTypeID( "diacVPos" );

                                      var iddiacVPosOpenType = stringIDToTypeID( "diacVPosOpenType" );

                                      desc130.putEnumerated( iddiacVPos, iddiacVPos, iddiacVPosOpenType );

                                      var iddiacXOffset = stringIDToTypeID( "diacXOffset" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( iddiacXOffset, idPnt, 0.000000 );

                                      var iddiacYOffset = stringIDToTypeID( "diacYOffset" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( iddiacYOffset, idPnt, 0.000000 );

                                      var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );

                                      var idbaseline = stringIDToTypeID( "baseline" );

                                      var idbaseline = stringIDToTypeID( "baseline" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc130.putEnumerated( idbaseline, idbaseline, idNrml );

                                      var idotbaseline = stringIDToTypeID( "otbaseline" );

                                      var idotbaseline = stringIDToTypeID( "otbaseline" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc130.putEnumerated( idotbaseline, idotbaseline, idNrml );

                                      var idstrikethrough = stringIDToTypeID( "strikethrough" );

                                      var idstrikethrough = stringIDToTypeID( "strikethrough" );

                                      var idstrikethroughOff = stringIDToTypeID( "strikethroughOff" );

                                      desc130.putEnumerated( idstrikethrough, idstrikethrough, idstrikethroughOff );

                                      var idUndl = charIDToTypeID( "Undl" );

                                      var idUndl = charIDToTypeID( "Undl" );

                                      var idunderlineOff = stringIDToTypeID( "underlineOff" );

                                      desc130.putEnumerated( idUndl, idUndl, idunderlineOff );

                                      var idunderlineOffset = stringIDToTypeID( "underlineOffset" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idunderlineOffset, idPnt, 0.000000 );

                                      var idligature = stringIDToTypeID( "ligature" );

                                      desc130.putBoolean( idligature, true );

                                      var idaltligature = stringIDToTypeID( "altligature" );

                                      desc130.putBoolean( idaltligature, false );

                                      var idcontextualLigatures = stringIDToTypeID( "contextualLigatures" );

                                      desc130.putBoolean( idcontextualLigatures, false );

                                      var idalternateLigatures = stringIDToTypeID( "alternateLigatures" );

                                      desc130.putBoolean( idalternateLigatures, false );

                                      var idoldStyle = stringIDToTypeID( "oldStyle" );

                                      desc130.putBoolean( idoldStyle, false );

                                      var idfractions = stringIDToTypeID( "fractions" );

                                      desc130.putBoolean( idfractions, false );

                                      var idordinals = stringIDToTypeID( "ordinals" );

                                      desc130.putBoolean( idordinals, false );

                                      var idswash = stringIDToTypeID( "swash" );

                                      desc130.putBoolean( idswash, false );

                                      var idtitling = stringIDToTypeID( "titling" );

                                      desc130.putBoolean( idtitling, false );

                                      var idconnectionForms = stringIDToTypeID( "connectionForms" );

                                      desc130.putBoolean( idconnectionForms, false );

                                      var idstylisticAlternates = stringIDToTypeID( "stylisticAlternates" );

                                      desc130.putBoolean( idstylisticAlternates, false );

                                      var idornaments = stringIDToTypeID( "ornaments" );

                                      desc130.putBoolean( idornaments, false );

                                      var idjustificationAlternates = stringIDToTypeID( "justificationAlternates" );

                                      desc130.putBoolean( idjustificationAlternates, false );

                                      var idfigureStyle = stringIDToTypeID( "figureStyle" );

                                      var idfigureStyle = stringIDToTypeID( "figureStyle" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc130.putEnumerated( idfigureStyle, idfigureStyle, idNrml );

                                      var idproportionalMetrics = stringIDToTypeID( "proportionalMetrics" );

                                      desc130.putBoolean( idproportionalMetrics, false );

                                      var idkana = stringIDToTypeID( "kana" );

                                      desc130.putBoolean( idkana, false );

                                      var iditalics = stringIDToTypeID( "italics" );

                                      desc130.putBoolean( iditalics, false );

                                      var idruby = stringIDToTypeID( "ruby" );

                                      desc130.putBoolean( idruby, false );

                                      var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                                      var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                                      var idrotated = stringIDToTypeID( "rotated" );

                                      desc130.putEnumerated( idbaselineDirection, idbaselineDirection, idrotated );

                                      var idtextLanguage = stringIDToTypeID( "textLanguage" );

                                      var idtextLanguage = stringIDToTypeID( "textLanguage" );

                                      var idenglishLanguage = stringIDToTypeID( "englishLanguage" );

                                      desc130.putEnumerated( idtextLanguage, idtextLanguage, idenglishLanguage );

                                      var idjapaneseAlternate = stringIDToTypeID( "japaneseAlternate" );

                                      var idjapaneseAlternate = stringIDToTypeID( "japaneseAlternate" );

                                      var iddefaultForm = stringIDToTypeID( "defaultForm" );

                                      desc130.putEnumerated( idjapaneseAlternate, idjapaneseAlternate, iddefaultForm );

                                      var idmojiZume = stringIDToTypeID( "mojiZume" );

                                      desc130.putDouble( idmojiZume, 0.000000 );

                                      var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                                      var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                                      var idroman = stringIDToTypeID( "roman" );

                                      desc130.putEnumerated( idgridAlignment, idgridAlignment, idroman );

                                      var idenableWariChu = stringIDToTypeID( "enableWariChu" );

                                      desc130.putBoolean( idenableWariChu, false );

                                      var idwariChuCount = stringIDToTypeID( "wariChuCount" );

                                      desc130.putInteger( idwariChuCount, 2 );

                                      var idwariChuLineGap = stringIDToTypeID( "wariChuLineGap" );

                                      desc130.putInteger( idwariChuLineGap, 0 );

                                      var idwariChuScale = stringIDToTypeID( "wariChuScale" );

                                      desc130.putDouble( idwariChuScale, 0.500000 );

                                      var idwariChuWidow = stringIDToTypeID( "wariChuWidow" );

                                      desc130.putInteger( idwariChuWidow, 2 );

                                      var idwariChuOrphan = stringIDToTypeID( "wariChuOrphan" );

                                      desc130.putInteger( idwariChuOrphan, 2 );

                                      var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                                      var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                                      var idwariChuAutoJustify = stringIDToTypeID( "wariChuAutoJustify" );

                                      desc130.putEnumerated( idwariChuJustification, idwariChuJustification, idwariChuAutoJustify );

                                      var idtcyUpDown = stringIDToTypeID( "tcyUpDown" );

                                      desc130.putInteger( idtcyUpDown, 0 );

                                      var idtcyLeftRight = stringIDToTypeID( "tcyLeftRight" );

                                      desc130.putInteger( idtcyLeftRight, 0 );

                                      var idleftAki = stringIDToTypeID( "leftAki" );

                                      desc130.putDouble( idleftAki, -1.000000 );

                                      var idrightAki = stringIDToTypeID( "rightAki" );

                                      desc130.putDouble( idrightAki, -1.000000 );

                                      var idjiDori = stringIDToTypeID( "jiDori" );

                                      desc130.putInteger( idjiDori, 0 );

                                      var idnoBreak = stringIDToTypeID( "noBreak" );

                                      desc130.putBoolean( idnoBreak, false );

                                      var idClr = charIDToTypeID( "Clr " );

                                          var desc131 = new ActionDescriptor();

                                          var idRd = charIDToTypeID( "Rd  " );

                                          desc131.putDouble( idRd, 0.000000 );

                                          var idGrn = charIDToTypeID( "Grn " );

                                          desc131.putDouble( idGrn, 0.000000 );

                                          var idBl = charIDToTypeID( "Bl  " );

                                          desc131.putDouble( idBl, 0.000000 );

                                      var idRGBC = charIDToTypeID( "RGBC" );

                                      desc130.putObject( idClr, idRGBC, desc131 );

                                      var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                          var desc132 = new ActionDescriptor();

                                          var idRd = charIDToTypeID( "Rd  " );

                                          desc132.putDouble( idRd, 0.000000 );

                                          var idGrn = charIDToTypeID( "Grn " );

                                          desc132.putDouble( idGrn, 0.000000 );

                                          var idBl = charIDToTypeID( "Bl  " );

                                          desc132.putDouble( idBl, 0.000000 );

                                      var idRGBC = charIDToTypeID( "RGBC" );

                                      desc130.putObject( idstrokeColor, idRGBC, desc132 );

                                      var idFl = charIDToTypeID( "Fl  " );

                                      desc130.putBoolean( idFl, true );

                                      var idStrk = charIDToTypeID( "Strk" );

                                      desc130.putBoolean( idStrk, false );

                                      var idfillFirst = stringIDToTypeID( "fillFirst" );

                                      desc130.putBoolean( idfillFirst, true );

                                      var idfillOverPrint = stringIDToTypeID( "fillOverPrint" );

                                      desc130.putBoolean( idfillOverPrint, false );

                                      var idstrokeOverPrint = stringIDToTypeID( "strokeOverPrint" );

                                      desc130.putBoolean( idstrokeOverPrint, false );

                                      var idlineCap = stringIDToTypeID( "lineCap" );

                                      var idlineCap = stringIDToTypeID( "lineCap" );

                                      var idbuttCap = stringIDToTypeID( "buttCap" );

                                      desc130.putEnumerated( idlineCap, idlineCap, idbuttCap );

                                      var idlineJoin = stringIDToTypeID( "lineJoin" );

                                      var idlineJoin = stringIDToTypeID( "lineJoin" );

                                      var idmiterJoin = stringIDToTypeID( "miterJoin" );

                                      desc130.putEnumerated( idlineJoin, idlineJoin, idmiterJoin );

                                      var idlineWidth = stringIDToTypeID( "lineWidth" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idlineWidth, idPnt, 1.000000 );

                                      var idmiterLimit = stringIDToTypeID( "miterLimit" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc130.putUnitDouble( idmiterLimit, idPnt, 4.000000 );

                                      var idlineDashoffset = stringIDToTypeID( "lineDashoffset" );

                                      desc130.putDouble( idlineDashoffset, 0.000000 );

                                  var idTxtS = charIDToTypeID( "TxtS" );

                                  desc127.putObject( idbaseParentStyle, idTxtS, desc130 );

                              var idTxtS = charIDToTypeID( "TxtS" );

                              desc126.putObject( idTxtS, idTxtS, desc127 );

                          var idTxtt = charIDToTypeID( "Txtt" );

                          list20.putObject( idTxtt, desc126 );

                              var desc133 = new ActionDescriptor();

                              var idFrom = charIDToTypeID( "From" );

                              desc133.putInteger( idFrom, 1 );

                              var idT = charIDToTypeID( "T   " );

                              desc133.putInteger( idT, 2 );

                              var idTxtS = charIDToTypeID( "TxtS" );

                                  var desc134 = new ActionDescriptor();

                                  var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                                  desc134.putBoolean( idstyleSheetHasParent, true );

                                  var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

                                  desc134.putString( idfontPostScriptName, """TimesNewRomanPSMT""" );

                                  var idFntN = charIDToTypeID( "FntN" );

                                  desc134.putString( idFntN, """Times New Roman""" );

                                  var idFntS = charIDToTypeID( "FntS" );

                                  desc134.putString( idFntS, """Regular""" );

                                  var idScrp = charIDToTypeID( "Scrp" );

                                  desc134.putInteger( idScrp, 0 );

                                  var idFntT = charIDToTypeID( "FntT" );

                                  desc134.putInteger( idFntT, 1 );

                                  var idSz = charIDToTypeID( "Sz  " );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc134.putUnitDouble( idSz, idPnt, 72.000000 );

                                  var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc134.putUnitDouble( idimpliedFontSize, idPnt, 72.000000 );

                                  var iddigitSet = stringIDToTypeID( "digitSet" );

                                  var iddigitSet = stringIDToTypeID( "digitSet" );

                                  var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                                  desc134.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                                  var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc134.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );

                                  var idClr = charIDToTypeID( "Clr " );

                                      var desc135 = new ActionDescriptor();

                                      var idRd = charIDToTypeID( "Rd  " );

                                      desc135.putDouble( idRd, 199.996948 );

                                      var idGrn = charIDToTypeID( "Grn " );

                                      desc135.putDouble( idGrn, 99.998474 );

                                      var idBl = charIDToTypeID( "Bl  " );

                                      desc135.putDouble( idBl, 199.996948 );

                                  var idRGBC = charIDToTypeID( "RGBC" );

                                  desc134.putObject( idClr, idRGBC, desc135 );

                                  var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                      var desc136 = new ActionDescriptor();

                                      var idRd = charIDToTypeID( "Rd  " );

                                      desc136.putDouble( idRd, 255.000000 );

                                      var idGrn = charIDToTypeID( "Grn " );

                                      desc136.putDouble( idGrn, 255.000000 );

                                      var idBl = charIDToTypeID( "Bl  " );

                                      desc136.putDouble( idBl, 255.000000 );

                                  var idRGBC = charIDToTypeID( "RGBC" );

                                  desc134.putObject( idstrokeColor, idRGBC, desc136 );

                              var idTxtS = charIDToTypeID( "TxtS" );

                              desc133.putObject( idTxtS, idTxtS, desc134 );

                          var idTxtt = charIDToTypeID( "Txtt" );

                          list20.putObject( idTxtt, desc133 );

                              var desc137 = new ActionDescriptor();

                              var idFrom = charIDToTypeID( "From" );

                              desc137.putInteger( idFrom, 2 );

                              var idT = charIDToTypeID( "T   " );

                              desc137.putInteger( idT, 4 );

                              var idTxtS = charIDToTypeID( "TxtS" );

                                  var desc138 = new ActionDescriptor();

                                  var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                                  desc138.putBoolean( idstyleSheetHasParent, true );

                                  var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

                                  desc138.putString( idfontPostScriptName, """TimesNewRomanPSMT""" );

                                  var idFntN = charIDToTypeID( "FntN" );

                                  desc138.putString( idFntN, """Times New Roman""" );

                                  var idFntS = charIDToTypeID( "FntS" );

                                  desc138.putString( idFntS, """Regular""" );

                                  var idScrp = charIDToTypeID( "Scrp" );

                                  desc138.putInteger( idScrp, 0 );

                                  var idFntT = charIDToTypeID( "FntT" );

                                  desc138.putInteger( idFntT, 1 );

                                  var idSz = charIDToTypeID( "Sz  " );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc138.putUnitDouble( idSz, idPnt, 72.000000 );

                                  var idimpliedFontSize = stringIDToTypeID( "impliedFontSize" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc138.putUnitDouble( idimpliedFontSize, idPnt, 72.000000 );

                                  var iddigitSet = stringIDToTypeID( "digitSet" );

                                  var iddigitSet = stringIDToTypeID( "digitSet" );

                                  var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                                  desc138.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                                  var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc138.putUnitDouble( idmarkYDistFromBaseline, idPnt, 100.000000 );

                                  var idClr = charIDToTypeID( "Clr " );

                                      var desc139 = new ActionDescriptor();

                                      var idRd = charIDToTypeID( "Rd  " );

                                      desc139.putDouble( idRd, 99.998474 );

                                      var idGrn = charIDToTypeID( "Grn " );

                                      desc139.putDouble( idGrn, 99.998474 );

                                      var idBl = charIDToTypeID( "Bl  " );

                                      desc139.putDouble( idBl, 99.998474 );

                                  var idRGBC = charIDToTypeID( "RGBC" );

                                  desc138.putObject( idClr, idRGBC, desc139 );

                                  var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                      var desc140 = new ActionDescriptor();

                                      var idRd = charIDToTypeID( "Rd  " );

                                      desc140.putDouble( idRd, 255.000000 );

                                      var idGrn = charIDToTypeID( "Grn " );

                                      desc140.putDouble( idGrn, 255.000000 );

                                      var idBl = charIDToTypeID( "Bl  " );

                                      desc140.putDouble( idBl, 255.000000 );

                                  var idRGBC = charIDToTypeID( "RGBC" );

                                  desc138.putObject( idstrokeColor, idRGBC, desc140 );

                              var idTxtS = charIDToTypeID( "TxtS" );

                              desc137.putObject( idTxtS, idTxtS, desc138 );

                          var idTxtt = charIDToTypeID( "Txtt" );

                          list20.putObject( idTxtt, desc137 );

                      desc119.putList( idTxtt, list20 );

                      var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );

                          var list21 = new ActionList();

                              var desc141 = new ActionDescriptor();

                              var idFrom = charIDToTypeID( "From" );

                              desc141.putInteger( idFrom, 0 );

                              var idT = charIDToTypeID( "T   " );

                              desc141.putInteger( idT, 4 );

                              var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );

                                  var desc142 = new ActionDescriptor();

                                  var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                                  desc142.putBoolean( idstyleSheetHasParent, true );

                                  var idAlgn = charIDToTypeID( "Algn" );

                                  var idAlg = charIDToTypeID( "Alg " );

                                  var idLeft = charIDToTypeID( "Left" );

                                  desc142.putEnumerated( idAlgn, idAlg, idLeft );

                                  var idfirstLineIndent = stringIDToTypeID( "firstLineIndent" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idfirstLineIndent, idPnt, 0.000000 );

                                  var idimpliedFirstLineIndent = stringIDToTypeID( "impliedFirstLineIndent" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idimpliedFirstLineIndent, idPnt, 0.000000 );

                                  var idstartIndent = stringIDToTypeID( "startIndent" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idstartIndent, idPnt, 0.000000 );

                                  var idimpliedStartIndent = stringIDToTypeID( "impliedStartIndent" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idimpliedStartIndent, idPnt, 0.000000 );

                                  var idendIndent = stringIDToTypeID( "endIndent" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idendIndent, idPnt, 0.000000 );

                                  var idimpliedEndIndent = stringIDToTypeID( "impliedEndIndent" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idimpliedEndIndent, idPnt, 0.000000 );

                                  var idspaceBefore = stringIDToTypeID( "spaceBefore" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idspaceBefore, idPnt, 0.000000 );

                                  var idimpliedSpaceBefore = stringIDToTypeID( "impliedSpaceBefore" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idimpliedSpaceBefore, idPnt, 0.000000 );

                                  var idspaceAfter = stringIDToTypeID( "spaceAfter" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idspaceAfter, idPnt, 0.000000 );

                                  var idimpliedSpaceAfter = stringIDToTypeID( "impliedSpaceAfter" );

                                  var idPnt = charIDToTypeID( "#Pnt" );

                                  desc142.putUnitDouble( idimpliedSpaceAfter, idPnt, 0.000000 );

                                  var iddropCapMultiplier = stringIDToTypeID( "dropCapMultiplier" );

                                  desc142.putInteger( iddropCapMultiplier, 1 );

                                  var idautoLeadingPercentage = stringIDToTypeID( "autoLeadingPercentage" );

                                  desc142.putDouble( idautoLeadingPercentage, 1.200000 );

                                  var idleadingType = stringIDToTypeID( "leadingType" );

                                  var idleadingType = stringIDToTypeID( "leadingType" );

                                  var idleadingBelow = stringIDToTypeID( "leadingBelow" );

                                  desc142.putEnumerated( idleadingType, idleadingType, idleadingBelow );

                                  var iddirectionType = stringIDToTypeID( "directionType" );

                                  var iddirectionType = stringIDToTypeID( "directionType" );

                                  var iddirLeftToRight = stringIDToTypeID( "dirLeftToRight" );

                                  desc142.putEnumerated( iddirectionType, iddirectionType, iddirLeftToRight );

                                  var idkashidaWidthType = stringIDToTypeID( "kashidaWidthType" );

                                  var idkashidaWidthType = stringIDToTypeID( "kashidaWidthType" );

                                  var idkashidaWidthMedium = stringIDToTypeID( "kashidaWidthMedium" );

                                  desc142.putEnumerated( idkashidaWidthType, idkashidaWidthType, idkashidaWidthMedium );

                                  var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );

                                  var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );

                                  var idjustifMethodAutomatic = stringIDToTypeID( "justifMethodAutomatic" );

                                  desc142.putEnumerated( idjustificationMethodType, idjustificationMethodType, idjustifMethodAutomatic );

                                  var idhyphenate = stringIDToTypeID( "hyphenate" );

                                  desc142.putBoolean( idhyphenate, true );

                                  var idhyphenateWordSize = stringIDToTypeID( "hyphenateWordSize" );

                                  desc142.putInteger( idhyphenateWordSize, 6 );

                                  var idhyphenatePreLength = stringIDToTypeID( "hyphenatePreLength" );

                                  desc142.putInteger( idhyphenatePreLength, 2 );

                                  var idhyphenatePostLength = stringIDToTypeID( "hyphenatePostLength" );

                                  desc142.putInteger( idhyphenatePostLength, 2 );

                                  var idhyphenateLimit = stringIDToTypeID( "hyphenateLimit" );

                                  desc142.putInteger( idhyphenateLimit, 0 );

                                  var idhyphenationZone = stringIDToTypeID( "hyphenationZone" );

                                  desc142.putDouble( idhyphenationZone, 36.000000 );

                                  var idhyphenateCapitalized = stringIDToTypeID( "hyphenateCapitalized" );

                                  desc142.putBoolean( idhyphenateCapitalized, true );

                                  var idhyphenationPreference = stringIDToTypeID( "hyphenationPreference" );

                                  desc142.putDouble( idhyphenationPreference, 0.500000 );

                                  var idjustificationWordMinimum = stringIDToTypeID( "justificationWordMinimum" );

                                  desc142.putDouble( idjustificationWordMinimum, 0.800000 );

                                  var idjustificationWordDesired = stringIDToTypeID( "justificationWordDesired" );

                                  desc142.putDouble( idjustificationWordDesired, 1.000000 );

                                  var idjustificationWordMaximum = stringIDToTypeID( "justificationWordMaximum" );

                                  desc142.putDouble( idjustificationWordMaximum, 1.330000 );

                                  var idjustificationLetterMinimum = stringIDToTypeID( "justificationLetterMinimum" );

                                  desc142.putDouble( idjustificationLetterMinimum, 0.000000 );

                                  var idjustificationLetterDesired = stringIDToTypeID( "justificationLetterDesired" );

                                  desc142.putDouble( idjustificationLetterDesired, 0.000000 );

                                  var idjustificationLetterMaximum = stringIDToTypeID( "justificationLetterMaximum" );

                                  desc142.putDouble( idjustificationLetterMaximum, 0.000000 );

                                  var idjustificationGlyphMinimum = stringIDToTypeID( "justificationGlyphMinimum" );

                                  desc142.putDouble( idjustificationGlyphMinimum, 1.000000 );

                                  var idjustificationGlyphDesired = stringIDToTypeID( "justificationGlyphDesired" );

                                  desc142.putDouble( idjustificationGlyphDesired, 1.000000 );

                                  var idjustificationGlyphMaximum = stringIDToTypeID( "justificationGlyphMaximum" );

                                  desc142.putDouble( idjustificationGlyphMaximum, 1.000000 );

                                  var idsingleWordJustification = stringIDToTypeID( "singleWordJustification" );

                                  var idAlg = charIDToTypeID( "Alg " );

                                  var idJstA = charIDToTypeID( "JstA" );

                                  desc142.putEnumerated( idsingleWordJustification, idAlg, idJstA );

                                  var idhangingRoman = stringIDToTypeID( "hangingRoman" );

                                  desc142.putBoolean( idhangingRoman, false );

                                  var idautoTCY = stringIDToTypeID( "autoTCY" );

                                  desc142.putInteger( idautoTCY, 0 );

                                  var idkeepTogether = stringIDToTypeID( "keepTogether" );

                                  desc142.putBoolean( idkeepTogether, true );

                                  var idburasagari = stringIDToTypeID( "burasagari" );

                                  var idburasagari = stringIDToTypeID( "burasagari" );

                                  var idburasagariNone = stringIDToTypeID( "burasagariNone" );

                                  desc142.putEnumerated( idburasagari, idburasagari, idburasagariNone );

                                  var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );

                                  var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );

                                  var idpushIn = stringIDToTypeID( "pushIn" );

                                  desc142.putEnumerated( idpreferredKinsokuOrder, idpreferredKinsokuOrder, idpushIn );

                                  var idkurikaeshiMojiShori = stringIDToTypeID( "kurikaeshiMojiShori" );

                                  desc142.putBoolean( idkurikaeshiMojiShori, false );

                                  var idtextEveryLineComposer = stringIDToTypeID( "textEveryLineComposer" );

                                  desc142.putBoolean( idtextEveryLineComposer, false );

                                  var iddefaultTabWidth = stringIDToTypeID( "defaultTabWidth" );

                                  desc142.putDouble( iddefaultTabWidth, 36.000000 );

                                  var iddefaultStyle = stringIDToTypeID( "defaultStyle" );

                                      var desc143 = new ActionDescriptor();

                                      var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

                                      desc143.putString( idfontPostScriptName, """MyriadPro-Regular""" );

                                      var idFntN = charIDToTypeID( "FntN" );

                                      desc143.putString( idFntN, """Myriad Pro""" );

                                      var idFntS = charIDToTypeID( "FntS" );

                                      desc143.putString( idFntS, """Regular""" );

                                      var idScrp = charIDToTypeID( "Scrp" );

                                      desc143.putInteger( idScrp, 0 );

                                      var idFntT = charIDToTypeID( "FntT" );

                                      desc143.putInteger( idFntT, 0 );

                                      var idSz = charIDToTypeID( "Sz  " );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc143.putUnitDouble( idSz, idPnt, 12.000000 );

                                      var idHrzS = charIDToTypeID( "HrzS" );

                                      desc143.putDouble( idHrzS, 100.000000 );

                                      var idVrtS = charIDToTypeID( "VrtS" );

                                      desc143.putDouble( idVrtS, 100.000000 );

                                      var idsyntheticBold = stringIDToTypeID( "syntheticBold" );

                                      desc143.putBoolean( idsyntheticBold, false );

                                      var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );

                                      desc143.putBoolean( idsyntheticItalic, false );

                                      var idautoLeading = stringIDToTypeID( "autoLeading" );

                                      desc143.putBoolean( idautoLeading, true );

                                      var idTrck = charIDToTypeID( "Trck" );

                                      desc143.putInteger( idTrck, 0 );

                                      var idBsln = charIDToTypeID( "Bsln" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc143.putUnitDouble( idBsln, idPnt, 0.000000 );

                                      var idcharacterRotation = stringIDToTypeID( "characterRotation" );

                                      desc143.putDouble( idcharacterRotation, 0.000000 );

                                      var idAtKr = charIDToTypeID( "AtKr" );

                                      var idAtKr = charIDToTypeID( "AtKr" );

                                      var idmetricsKern = stringIDToTypeID( "metricsKern" );

                                      desc143.putEnumerated( idAtKr, idAtKr, idmetricsKern );

                                      var idfontCaps = stringIDToTypeID( "fontCaps" );

                                      var idfontCaps = stringIDToTypeID( "fontCaps" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc143.putEnumerated( idfontCaps, idfontCaps, idNrml );

                                      var iddigitSet = stringIDToTypeID( "digitSet" );

                                      var iddigitSet = stringIDToTypeID( "digitSet" );

                                      var idarabicDigits = stringIDToTypeID( "arabicDigits" );

                                      desc143.putEnumerated( iddigitSet, iddigitSet, idarabicDigits );

                                      var idkashidas = stringIDToTypeID( "kashidas" );

                                      var idkashidas = stringIDToTypeID( "kashidas" );

                                      var idkashidaDefault = stringIDToTypeID( "kashidaDefault" );

                                      desc143.putEnumerated( idkashidas, idkashidas, idkashidaDefault );

                                      var iddiacVPos = stringIDToTypeID( "diacVPos" );

                                      var iddiacVPos = stringIDToTypeID( "diacVPos" );

                                      var iddiacVPosOpenType = stringIDToTypeID( "diacVPosOpenType" );

                                      desc143.putEnumerated( iddiacVPos, iddiacVPos, iddiacVPosOpenType );

                                      var iddiacXOffset = stringIDToTypeID( "diacXOffset" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc143.putUnitDouble( iddiacXOffset, idPnt, 0.000000 );

                                      var iddiacYOffset = stringIDToTypeID( "diacYOffset" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc143.putUnitDouble( iddiacYOffset, idPnt, 0.000000 );

                                      var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );

                                      var idPnt = charIDToTypeID( "#Pnt" );

                                      desc143.putUnitDouble( idmarkYDistFromBaseline, idPnt, 0.000000 );

                                      var idbaseline = stringIDToTypeID( "baseline" );

                                      var idbaseline = stringIDToTypeID( "baseline" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc143.putEnumerated( idbaseline, idbaseline, idNrml );

                                      var idstrikethrough = stringIDToTypeID( "strikethrough" );

                                      var idstrikethrough = stringIDToTypeID( "strikethrough" );

                                      var idstrikethroughOff = stringIDToTypeID( "strikethroughOff" );

                                      desc143.putEnumerated( idstrikethrough, idstrikethrough, idstrikethroughOff );

                                      var idUndl = charIDToTypeID( "Undl" );

                                      var idUndl = charIDToTypeID( "Undl" );

                                      var idunderlineOff = stringIDToTypeID( "underlineOff" );

                                      desc143.putEnumerated( idUndl, idUndl, idunderlineOff );

                                      var idligature = stringIDToTypeID( "ligature" );

                                      desc143.putBoolean( idligature, true );

                                      var idaltligature = stringIDToTypeID( "altligature" );

                                      desc143.putBoolean( idaltligature, false );

                                      var idcontextualLigatures = stringIDToTypeID( "contextualLigatures" );

                                      desc143.putBoolean( idcontextualLigatures, true );

                                      var idalternateLigatures = stringIDToTypeID( "alternateLigatures" );

                                      desc143.putBoolean( idalternateLigatures, false );

                                      var idoldStyle = stringIDToTypeID( "oldStyle" );

                                      desc143.putBoolean( idoldStyle, false );

                                      var idfractions = stringIDToTypeID( "fractions" );

                                      desc143.putBoolean( idfractions, false );

                                      var idordinals = stringIDToTypeID( "ordinals" );

                                      desc143.putBoolean( idordinals, false );

                                      var idswash = stringIDToTypeID( "swash" );

                                      desc143.putBoolean( idswash, false );

                                      var idtitling = stringIDToTypeID( "titling" );

                                      desc143.putBoolean( idtitling, false );

                                      var idconnectionForms = stringIDToTypeID( "connectionForms" );

                                      desc143.putBoolean( idconnectionForms, false );

                                      var idstylisticAlternates = stringIDToTypeID( "stylisticAlternates" );

                                      desc143.putBoolean( idstylisticAlternates, false );

                                      var idornaments = stringIDToTypeID( "ornaments" );

                                      desc143.putBoolean( idornaments, false );

                                      var idfigureStyle = stringIDToTypeID( "figureStyle" );

                                      var idfigureStyle = stringIDToTypeID( "figureStyle" );

                                      var idNrml = charIDToTypeID( "Nrml" );

                                      desc143.putEnumerated( idfigureStyle, idfigureStyle, idNrml );

                                      var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                                      var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                                      var idwithStream = stringIDToTypeID( "withStream" );

                                      desc143.putEnumerated( idbaselineDirection, idbaselineDirection, idwithStream );

                                      var idtextLanguage = stringIDToTypeID( "textLanguage" );

                                      var idtextLanguage = stringIDToTypeID( "textLanguage" );

                                      var idenglishLanguage = stringIDToTypeID( "englishLanguage" );

                                      desc143.putEnumerated( idtextLanguage, idtextLanguage, idenglishLanguage );

                                      var idClr = charIDToTypeID( "Clr " );

                                          var desc144 = new ActionDescriptor();

                                          var idRd = charIDToTypeID( "Rd  " );

                                          desc144.putDouble( idRd, 0.000000 );

                                          var idGrn = charIDToTypeID( "Grn " );

                                          desc144.putDouble( idGrn, 0.000000 );

                                          var idBl = charIDToTypeID( "Bl  " );

                                          desc144.putDouble( idBl, 0.000000 );

                                      var idRGBC = charIDToTypeID( "RGBC" );

                                      desc143.putObject( idClr, idRGBC, desc144 );

                                      var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                          var desc145 = new ActionDescriptor();

                                          var idRd = charIDToTypeID( "Rd  " );

                                          desc145.putDouble( idRd, 0.000000 );

                                          var idGrn = charIDToTypeID( "Grn " );

                                          desc145.putDouble( idGrn, 0.000000 );

                                          var idBl = charIDToTypeID( "Bl  " );

                                          desc145.putDouble( idBl, 0.000000 );

                                      var idRGBC = charIDToTypeID( "RGBC" );

                                      desc143.putObject( idstrokeColor, idRGBC, desc145 );

                                  var idTxtS = charIDToTypeID( "TxtS" );

                                  desc142.putObject( iddefaultStyle, idTxtS, desc143 );

                              var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );

                              desc141.putObject( idparagraphStyle, idparagraphStyle, desc142 );

                          var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );

                          list21.putObject( idparagraphStyleRange, desc141 );

                      desc119.putList( idparagraphStyleRange, list21 );

                      var idkerningRange = stringIDToTypeID( "kerningRange" );

                          var list22 = new ActionList();

                      desc119.putList( idkerningRange, list22 );

                  var idTxLr = charIDToTypeID( "TxLr" );

                  desc118.putObject( idT, idTxLr, desc119 );

              executeAction( idsetd, desc118, DialogModes.NO );

               

              // =======================================================

              var idslct = charIDToTypeID( "slct" );

                  var desc146 = new ActionDescriptor();

                  var idnull = charIDToTypeID( "null" );

                      var ref22 = new ActionReference();

                      var idLyr = charIDToTypeID( "Lyr " );

                      ref22.putName( idLyr, "Background" );

                  desc146.putReference( idnull, ref22 );

                  var idMkVs = charIDToTypeID( "MkVs" );

                  desc146.putBoolean( idMkVs, false );

              executeAction( idslct, desc146, DialogModes.NO );