4 Replies Latest reply on Dec 10, 2014 7:39 AM by TomT-shirts

    How do I use Actionmanager code to change just the contents of a line of text?

    TomT-shirts Level 1

      The quick question - can anyone provide me with Action Manager code that will simply change the contents of a text field in Photoshop CS6?

       

      The long version, if anyone wants to know:

       

      I'm a reasonably experienced Applescripter with hundreds of Illustrator and Photoshop applescripts, but I don't know javascript at all.

       

      I have a script I'm doing currently that just deletes, changes the visibility, and/or changes the text contents of a whole bunch of layers.

       

      It's running just fine in Applescript, except it runs slower than molasses. I went to so much work to automate this stuff - the script's 750 lines with all the logic - and users are telling me that they can do this by hand in the time the script runs. It really does take as long as a minute, which just feels painful. It deletes about 25 layers, changes the text contents of up to 5 layers, and changes the visibility of maybe 2 to 24 layers.

       

      I tested the logic parts and they're near instantaneous. Replacing all of that and just plugging in static dummy values for the variables, and the Photoshop updates yield the same speed. For some reason, just telling Photoshop to do these things - feeding it a list of layers to delete and text to change, just takes it forever. Just a bunch of lines like: delete layer [whatever] of layer [whatever] of layer [whatever] or:

       

      set the contents of text object of art layer "Name" of layer set "Editable Text" of layer set "Header Elements" to "Some Text:" & someVariableText

       

      So I've been taking out the Photoshop calls in Applescript, and replacing them with calls to subroutines that replay Action Manager code I got from Scripting Listener and then plugging in the relevant variables.

       

      So far so good on the deleting layers, that part runs 20x faster now.

       

      On the text layer part - scripting listener records 1,011 lines of code when I change just the contents of a text field.

       

      What's recorded has everything about the appearance baked in. With Applescript, I could set the contents of a text field only, leaving the existing formatting, which was really handy. But if I use a call to my scripting listener code here, I'm going to have to save a different 1,000 line subroutine function for every text style of a text field I want to change, and then the script will be horribly non-future-proof.

       

      Not knowing Javascript, trying to deconstruct the 1,011 line monstrosity Scripting Listener spits out to get to something that just changes the character contents of the text field is not happening. I tried a bit, but it's way over my head.

       

      Thanks in advance for any help. Scripting listener output pasted below, in case it's helpful. The only line that's relevant to what I'm trying to accomplish - meaning the only line I'll be replacing with my own variable, is line 13:

       

              desc6.putString( idTxt, """This is the text I entered.\rFor the this text field.""" );

       

       

       

      var idsetd = charIDToTypeID( "setd" );

          var desc5 = new ActionDescriptor();

          var idnull = charIDToTypeID( "null" );

              var ref5 = new ActionReference();

              var idTxLr = charIDToTypeID( "TxLr" );

              var idOrdn = charIDToTypeID( "Ordn" );

              var idTrgt = charIDToTypeID( "Trgt" );

              ref5.putEnumerated( idTxLr, idOrdn, idTrgt );

          desc5.putReference( idnull, ref5 );

          var idT = charIDToTypeID( "T   " );

              var desc6 = new ActionDescriptor();

              var idTxt = charIDToTypeID( "Txt " );

              desc6.putString( idTxt, """This is the text I entered.\rFor the front inks.""" );

              var idwarp = stringIDToTypeID( "warp" );

                  var desc7 = new ActionDescriptor();

                  var idwarpStyle = stringIDToTypeID( "warpStyle" );

                  var idwarpStyle = stringIDToTypeID( "warpStyle" );

                  var idwarpNone = stringIDToTypeID( "warpNone" );

                  desc7.putEnumerated( idwarpStyle, idwarpStyle, idwarpNone );

                  var idwarpValue = stringIDToTypeID( "warpValue" );

                  desc7.putDouble( idwarpValue, 0.000000 );

                  var idwarpPerspective = stringIDToTypeID( "warpPerspective" );

                  desc7.putDouble( idwarpPerspective, 0.000000 );

                  var idwarpPerspectiveOther = stringIDToTypeID( "warpPerspectiveOther" );

                  desc7.putDouble( idwarpPerspectiveOther, 0.000000 );

                  var idwarpRotate = stringIDToTypeID( "warpRotate" );

                  var idOrnt = charIDToTypeID( "Ornt" );

                  var idHrzn = charIDToTypeID( "Hrzn" );

                  desc7.putEnumerated( idwarpRotate, idOrnt, idHrzn );

              var idwarp = stringIDToTypeID( "warp" );

              desc6.putObject( idwarp, idwarp, desc7 );

              var idtextGridding = stringIDToTypeID( "textGridding" );

              var idtextGridding = stringIDToTypeID( "textGridding" );

              var idNone = charIDToTypeID( "None" );

              desc6.putEnumerated( idtextGridding, idtextGridding, idNone );

              var idOrnt = charIDToTypeID( "Ornt" );

              var idOrnt = charIDToTypeID( "Ornt" );

              var idHrzn = charIDToTypeID( "Hrzn" );

              desc6.putEnumerated( idOrnt, idOrnt, idHrzn );

              var idAntA = charIDToTypeID( "AntA" );

              var idAnnt = charIDToTypeID( "Annt" );

              var idAnCr = charIDToTypeID( "AnCr" );

              desc6.putEnumerated( idAntA, idAnnt, idAnCr );

              var idbounds = stringIDToTypeID( "bounds" );

                  var desc8 = new ActionDescriptor();

                  var idLeft = charIDToTypeID( "Left" );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc8.putUnitDouble( idLeft, idPnt, 0.000000 );

                  var idTop = charIDToTypeID( "Top " );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc8.putUnitDouble( idTop, idPnt, -95.852051 );

                  var idRght = charIDToTypeID( "Rght" );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc8.putUnitDouble( idRght, idPnt, 1318.981323 );

                  var idBtom = charIDToTypeID( "Btom" );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc8.putUnitDouble( idBtom, idPnt, 141.910156 );

              var idbounds = stringIDToTypeID( "bounds" );

              desc6.putObject( idbounds, idbounds, desc8 );

              var idboundingBox = stringIDToTypeID( "boundingBox" );

                  var desc9 = new ActionDescriptor();

                  var idLeft = charIDToTypeID( "Left" );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc9.putUnitDouble( idLeft, idPnt, 4.000000 );

                  var idTop = charIDToTypeID( "Top " );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc9.putUnitDouble( idTop, idPnt, -80.000000 );

                  var idRght = charIDToTypeID( "Rght" );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc9.putUnitDouble( idRght, idPnt, 1307.720215 );

                  var idBtom = charIDToTypeID( "Btom" );

                  var idPnt = charIDToTypeID( "#Pnt" );

                  desc9.putUnitDouble( idBtom, idPnt, 119.000000 );

              var idboundingBox = stringIDToTypeID( "boundingBox" );

              desc6.putObject( idboundingBox, idboundingBox, desc9 );

              var idtextShape = stringIDToTypeID( "textShape" );

                  var list1 = new ActionList();

                      var desc10 = new ActionDescriptor();

                      var idTEXT = charIDToTypeID( "TEXT" );

                      var idTEXT = charIDToTypeID( "TEXT" );

                      var idPnt = charIDToTypeID( "Pnt " );

                      desc10.putEnumerated( idTEXT, idTEXT, idPnt );

                      var idOrnt = charIDToTypeID( "Ornt" );

                      var idOrnt = charIDToTypeID( "Ornt" );

                      var idHrzn = charIDToTypeID( "Hrzn" );

                      desc10.putEnumerated( idOrnt, idOrnt, idHrzn );

                      var idTrnf = charIDToTypeID( "Trnf" );

                          var desc11 = new ActionDescriptor();

                          var idxx = stringIDToTypeID( "xx" );

                          desc11.putDouble( idxx, 1.000000 );

                          var idxy = stringIDToTypeID( "xy" );

                          desc11.putDouble( idxy, 0.000000 );

                          var idyx = stringIDToTypeID( "yx" );

                          desc11.putDouble( idyx, 0.000000 );

                          var idyy = stringIDToTypeID( "yy" );

                          desc11.putDouble( idyy, 1.000000 );

                          var idtx = stringIDToTypeID( "tx" );

                          desc11.putDouble( idtx, 0.000000 );

                          var idty = stringIDToTypeID( "ty" );

                          desc11.putDouble( idty, 0.000000 );

                      var idTrnf = charIDToTypeID( "Trnf" );

                      desc10.putObject( idTrnf, idTrnf, desc11 );

                      var idrowCount = stringIDToTypeID( "rowCount" );

                      desc10.putInteger( idrowCount, 1 );

                      var idcolumnCount = stringIDToTypeID( "columnCount" );

                      desc10.putInteger( idcolumnCount, 1 );

                      var idrowMajorOrder = stringIDToTypeID( "rowMajorOrder" );

                      desc10.putBoolean( idrowMajorOrder, true );

                      var idrowGutter = stringIDToTypeID( "rowGutter" );

                      var idPnt = charIDToTypeID( "#Pnt" );

                      desc10.putUnitDouble( idrowGutter, idPnt, 0.000000 );

                      var idcolumnGutter = stringIDToTypeID( "columnGutter" );

                      var idPnt = charIDToTypeID( "#Pnt" );

                      desc10.putUnitDouble( idcolumnGutter, idPnt, 0.000000 );

                      var idSpcn = charIDToTypeID( "Spcn" );

                      var idPnt = charIDToTypeID( "#Pnt" );

                      desc10.putUnitDouble( idSpcn, idPnt, 0.000000 );

                      var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );

                      var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );

                      var idalignByAscent = stringIDToTypeID( "alignByAscent" );

                      desc10.putEnumerated( idframeBaselineAlignment, idframeBaselineAlignment, idalignByAscent );

                      var idfirstBaselineMinimum = stringIDToTypeID( "firstBaselineMinimum" );

                      var idPnt = charIDToTypeID( "#Pnt" );

                      desc10.putUnitDouble( idfirstBaselineMinimum, idPnt, 0.000000 );

                      var idbase = stringIDToTypeID( "base" );

                          var desc12 = new ActionDescriptor();

                          var idHrzn = charIDToTypeID( "Hrzn" );

                          desc12.putDouble( idHrzn, 0.000000 );

                          var idVrtc = charIDToTypeID( "Vrtc" );

                          desc12.putDouble( idVrtc, 0.000000 );

                      var idPnt = charIDToTypeID( "Pnt " );

                      desc10.putObject( idbase, idPnt, desc12 );

                  var idtextShape = stringIDToTypeID( "textShape" );

                  list1.putObject( idtextShape, desc10 );

              desc6.putList( idtextShape, list1 );

              var idTxtt = charIDToTypeID( "Txtt" );

                  var list2 = new ActionList();

                      var desc13 = new ActionDescriptor();

                      var idFrom = charIDToTypeID( "From" );

                      desc13.putInteger( idFrom, 0 );

                      var idT = charIDToTypeID( "T   " );

                      desc13.putInteger( idT, 48 );

                      var idTxtS = charIDToTypeID( "TxtS" );

                          var desc14 = new ActionDescriptor();

                          var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                          desc14.putBoolean( idstyleSheetHasParent, true );

                          var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

                          desc14.putString( idfontPostScriptName, """ProximaNova-Bold""" );

                          var idFntN = charIDToTypeID( "FntN" );

                          desc14.putString( idFntN, """Proxima Nova""" );

                          var idFntS = charIDToTypeID( "FntS" );

                          desc14.putString( idFntS, """Bold""" );

                          var idScrp = charIDToTypeID( "Scrp" );

                          desc14.putInteger( idScrp, 0 );

                          var idFntT = charIDToTypeID( "FntT" );

                          desc14.putInteger( idFntT, 1 );

                          var idSz = charIDToTypeID( "Sz  " );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( idSz, idPnt, 115.000000 );

                          var idHrzS = charIDToTypeID( "HrzS" );

                          desc14.putDouble( idHrzS, 100.000000 );

                          var idVrtS = charIDToTypeID( "VrtS" );

                          desc14.putDouble( idVrtS, 100.000000 );

                          var idsyntheticBold = stringIDToTypeID( "syntheticBold" );

                          desc14.putBoolean( idsyntheticBold, false );

                          var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );

                          desc14.putBoolean( idsyntheticItalic, false );

                          var idautoLeading = stringIDToTypeID( "autoLeading" );

                          desc14.putBoolean( idautoLeading, false );

                          var idLdng = charIDToTypeID( "Ldng" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( idLdng, idPnt, 119.000000 );

                          var idTrck = charIDToTypeID( "Trck" );

                          desc14.putInteger( idTrck, 15 );

                          var idBsln = charIDToTypeID( "Bsln" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( idBsln, idPnt, 0.000000 );

                          var idcharacterRotation = stringIDToTypeID( "characterRotation" );

                          desc14.putDouble( idcharacterRotation, 0.000000 );

                          var idAtKr = charIDToTypeID( "AtKr" );

                          var idAtKr = charIDToTypeID( "AtKr" );

                          var idopticalKern = stringIDToTypeID( "opticalKern" );

                          desc14.putEnumerated( idAtKr, idAtKr, idopticalKern );

                          var idfontCaps = stringIDToTypeID( "fontCaps" );

                          var idfontCaps = stringIDToTypeID( "fontCaps" );

                          var idNrml = charIDToTypeID( "Nrml" );

                          desc14.putEnumerated( idfontCaps, idfontCaps, idNrml );

                          var iddigitSet = stringIDToTypeID( "digitSet" );

                          var iddigitSet = stringIDToTypeID( "digitSet" );

                          var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                          desc14.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                          var iddirOverride = stringIDToTypeID( "dirOverride" );

                          var iddirOverride = stringIDToTypeID( "dirOverride" );

                          var iddirOverrideDefault = stringIDToTypeID( "dirOverrideDefault" );

                          desc14.putEnumerated( iddirOverride, iddirOverride, iddirOverrideDefault );

                          var idkashidas = stringIDToTypeID( "kashidas" );

                          var idkashidas = stringIDToTypeID( "kashidas" );

                          var idkashidaDefault = stringIDToTypeID( "kashidaDefault" );

                          desc14.putEnumerated( idkashidas, idkashidas, idkashidaDefault );

                          var iddiacVPos = stringIDToTypeID( "diacVPos" );

                          var iddiacVPos = stringIDToTypeID( "diacVPos" );

                          var iddiacVPosOpenType = stringIDToTypeID( "diacVPosOpenType" );

                          desc14.putEnumerated( iddiacVPos, iddiacVPos, iddiacVPosOpenType );

                          var iddiacXOffset = stringIDToTypeID( "diacXOffset" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( iddiacXOffset, idPnt, 0.000000 );

                          var iddiacYOffset = stringIDToTypeID( "diacYOffset" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( iddiacYOffset, idPnt, 0.000000 );

                          var idbaseline = stringIDToTypeID( "baseline" );

                          var idbaseline = stringIDToTypeID( "baseline" );

                          var idNrml = charIDToTypeID( "Nrml" );

                          desc14.putEnumerated( idbaseline, idbaseline, idNrml );

                          var idotbaseline = stringIDToTypeID( "otbaseline" );

                          var idotbaseline = stringIDToTypeID( "otbaseline" );

                          var idNrml = charIDToTypeID( "Nrml" );

                          desc14.putEnumerated( idotbaseline, idotbaseline, idNrml );

                          var idstrikethrough = stringIDToTypeID( "strikethrough" );

                          var idstrikethrough = stringIDToTypeID( "strikethrough" );

                          var idstrikethroughOff = stringIDToTypeID( "strikethroughOff" );

                          desc14.putEnumerated( idstrikethrough, idstrikethrough, idstrikethroughOff );

                          var idUndl = charIDToTypeID( "Undl" );

                          var idUndl = charIDToTypeID( "Undl" );

                          var idunderlineOff = stringIDToTypeID( "underlineOff" );

                          desc14.putEnumerated( idUndl, idUndl, idunderlineOff );

                          var idunderlineOffset = stringIDToTypeID( "underlineOffset" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( idunderlineOffset, idPnt, 0.000000 );

                          var idligature = stringIDToTypeID( "ligature" );

                          desc14.putBoolean( idligature, true );

                          var idaltligature = stringIDToTypeID( "altligature" );

                          desc14.putBoolean( idaltligature, false );

                          var idcontextualLigatures = stringIDToTypeID( "contextualLigatures" );

                          desc14.putBoolean( idcontextualLigatures, true );

                          var idalternateLigatures = stringIDToTypeID( "alternateLigatures" );

                          desc14.putBoolean( idalternateLigatures, false );

                          var idoldStyle = stringIDToTypeID( "oldStyle" );

                          desc14.putBoolean( idoldStyle, false );

                          var idfractions = stringIDToTypeID( "fractions" );

                          desc14.putBoolean( idfractions, false );

                          var idordinals = stringIDToTypeID( "ordinals" );

                          desc14.putBoolean( idordinals, false );

                          var idswash = stringIDToTypeID( "swash" );

                          desc14.putBoolean( idswash, false );

                          var idtitling = stringIDToTypeID( "titling" );

                          desc14.putBoolean( idtitling, false );

                          var idconnectionForms = stringIDToTypeID( "connectionForms" );

                          desc14.putBoolean( idconnectionForms, true );

                          var idstylisticAlternates = stringIDToTypeID( "stylisticAlternates" );

                          desc14.putBoolean( idstylisticAlternates, false );

                          var idornaments = stringIDToTypeID( "ornaments" );

                          desc14.putBoolean( idornaments, false );

                          var idjustificationAlternates = stringIDToTypeID( "justificationAlternates" );

                          desc14.putBoolean( idjustificationAlternates, false );

                          var idfigureStyle = stringIDToTypeID( "figureStyle" );

                          var idfigureStyle = stringIDToTypeID( "figureStyle" );

                          var idNrml = charIDToTypeID( "Nrml" );

                          desc14.putEnumerated( idfigureStyle, idfigureStyle, idNrml );

                          var idproportionalMetrics = stringIDToTypeID( "proportionalMetrics" );

                          desc14.putBoolean( idproportionalMetrics, false );

                          var idkana = stringIDToTypeID( "kana" );

                          desc14.putBoolean( idkana, false );

                          var iditalics = stringIDToTypeID( "italics" );

                          desc14.putBoolean( iditalics, false );

                          var idruby = stringIDToTypeID( "ruby" );

                          desc14.putBoolean( idruby, false );

                          var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                          var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                          var idwithStream = stringIDToTypeID( "withStream" );

                          desc14.putEnumerated( idbaselineDirection, idbaselineDirection, idwithStream );

                          var idtextLanguage = stringIDToTypeID( "textLanguage" );

                          var idtextLanguage = stringIDToTypeID( "textLanguage" );

                          var idenglishLanguage = stringIDToTypeID( "englishLanguage" );

                          desc14.putEnumerated( idtextLanguage, idtextLanguage, idenglishLanguage );

                          var idjapaneseAlternate = stringIDToTypeID( "japaneseAlternate" );

                          var idjapaneseAlternate = stringIDToTypeID( "japaneseAlternate" );

                          var iddefaultForm = stringIDToTypeID( "defaultForm" );

                          desc14.putEnumerated( idjapaneseAlternate, idjapaneseAlternate, iddefaultForm );

                          var idmojiZume = stringIDToTypeID( "mojiZume" );

                          desc14.putDouble( idmojiZume, 0.000000 );

                          var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                          var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                          var idroman = stringIDToTypeID( "roman" );

                          desc14.putEnumerated( idgridAlignment, idgridAlignment, idroman );

                          var idenableWariChu = stringIDToTypeID( "enableWariChu" );

                          desc14.putBoolean( idenableWariChu, false );

                          var idwariChuCount = stringIDToTypeID( "wariChuCount" );

                          desc14.putInteger( idwariChuCount, 2 );

                          var idwariChuLineGap = stringIDToTypeID( "wariChuLineGap" );

                          desc14.putInteger( idwariChuLineGap, 0 );

                          var idwariChuScale = stringIDToTypeID( "wariChuScale" );

                          desc14.putDouble( idwariChuScale, 0.500000 );

                          var idwariChuWidow = stringIDToTypeID( "wariChuWidow" );

                          desc14.putInteger( idwariChuWidow, 2 );

                          var idwariChuOrphan = stringIDToTypeID( "wariChuOrphan" );

                          desc14.putInteger( idwariChuOrphan, 2 );

                          var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                          var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                          var idwariChuAutoJustify = stringIDToTypeID( "wariChuAutoJustify" );

                          desc14.putEnumerated( idwariChuJustification, idwariChuJustification, idwariChuAutoJustify );

                          var idtcyUpDown = stringIDToTypeID( "tcyUpDown" );

                          desc14.putInteger( idtcyUpDown, 0 );

                          var idtcyLeftRight = stringIDToTypeID( "tcyLeftRight" );

                          desc14.putInteger( idtcyLeftRight, 0 );

                          var idleftAki = stringIDToTypeID( "leftAki" );

                          desc14.putDouble( idleftAki, -1.000000 );

                          var idrightAki = stringIDToTypeID( "rightAki" );

                          desc14.putDouble( idrightAki, -1.000000 );

                          var idjiDori = stringIDToTypeID( "jiDori" );

                          desc14.putInteger( idjiDori, 0 );

                          var idnoBreak = stringIDToTypeID( "noBreak" );

                          desc14.putBoolean( idnoBreak, false );

                          var idClr = charIDToTypeID( "Clr " );

                              var desc15 = new ActionDescriptor();

                              var idRd = charIDToTypeID( "Rd  " );

                              desc15.putDouble( idRd, 30.217500 );

                              var idGrn = charIDToTypeID( "Grn " );

                              desc15.putDouble( idGrn, 76.104756 );

                              var idBl = charIDToTypeID( "Bl  " );

                              desc15.putDouble( idBl, 114.999902 );

                          var idRGBC = charIDToTypeID( "RGBC" );

                          desc14.putObject( idClr, idRGBC, desc15 );

                          var idstrokeColor = stringIDToTypeID( "strokeColor" );

                              var desc16 = new ActionDescriptor();

                              var idRd = charIDToTypeID( "Rd  " );

                              desc16.putDouble( idRd, 30.217500 );

                              var idGrn = charIDToTypeID( "Grn " );

                              desc16.putDouble( idGrn, 76.104756 );

                              var idBl = charIDToTypeID( "Bl  " );

                              desc16.putDouble( idBl, 114.999902 );

                          var idRGBC = charIDToTypeID( "RGBC" );

                          desc14.putObject( idstrokeColor, idRGBC, desc16 );

                          var idFl = charIDToTypeID( "Fl  " );

                          desc14.putBoolean( idFl, true );

                          var idStrk = charIDToTypeID( "Strk" );

                          desc14.putBoolean( idStrk, false );

                          var idfillFirst = stringIDToTypeID( "fillFirst" );

                          desc14.putBoolean( idfillFirst, false );

                          var idfillOverPrint = stringIDToTypeID( "fillOverPrint" );

                          desc14.putBoolean( idfillOverPrint, false );

                          var idstrokeOverPrint = stringIDToTypeID( "strokeOverPrint" );

                          desc14.putBoolean( idstrokeOverPrint, false );

                          var idlineCap = stringIDToTypeID( "lineCap" );

                          var idlineCap = stringIDToTypeID( "lineCap" );

                          var idbuttCap = stringIDToTypeID( "buttCap" );

                          desc14.putEnumerated( idlineCap, idlineCap, idbuttCap );

                          var idlineJoin = stringIDToTypeID( "lineJoin" );

                          var idlineJoin = stringIDToTypeID( "lineJoin" );

                          var idmiterJoin = stringIDToTypeID( "miterJoin" );

                          desc14.putEnumerated( idlineJoin, idlineJoin, idmiterJoin );

                          var idlineWidth = stringIDToTypeID( "lineWidth" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( idlineWidth, idPnt, 1.050280 );

                          var idmiterLimit = stringIDToTypeID( "miterLimit" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc14.putUnitDouble( idmiterLimit, idPnt, 1.050280 );

                          var idlineDashoffset = stringIDToTypeID( "lineDashoffset" );

                          desc14.putDouble( idlineDashoffset, 0.000000 );

                      var idTxtS = charIDToTypeID( "TxtS" );

                      desc13.putObject( idTxtS, idTxtS, desc14 );

                  var idTxtt = charIDToTypeID( "Txtt" );

                  list2.putObject( idTxtt, desc13 );

              desc6.putList( idTxtt, list2 );

              var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );

                  var list3 = new ActionList();

                      var desc17 = new ActionDescriptor();

                      var idFrom = charIDToTypeID( "From" );

                      desc17.putInteger( idFrom, 0 );

                      var idT = charIDToTypeID( "T   " );

                      desc17.putInteger( idT, 28 );

                      var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );

                          var desc18 = new ActionDescriptor();

                          var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                          desc18.putBoolean( idstyleSheetHasParent, true );

                          var idAlgn = charIDToTypeID( "Algn" );

                          var idAlg = charIDToTypeID( "Alg " );

                          var idLeft = charIDToTypeID( "Left" );

                          desc18.putEnumerated( idAlgn, idAlg, idLeft );

                          var idfirstLineIndent = stringIDToTypeID( "firstLineIndent" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc18.putUnitDouble( idfirstLineIndent, idPnt, 0.000000 );

                          var idstartIndent = stringIDToTypeID( "startIndent" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc18.putUnitDouble( idstartIndent, idPnt, 0.000000 );

                          var idendIndent = stringIDToTypeID( "endIndent" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc18.putUnitDouble( idendIndent, idPnt, 0.000000 );

                          var idspaceBefore = stringIDToTypeID( "spaceBefore" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc18.putUnitDouble( idspaceBefore, idPnt, 0.000000 );

                          var idspaceAfter = stringIDToTypeID( "spaceAfter" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc18.putUnitDouble( idspaceAfter, idPnt, 0.000000 );

                          var iddropCapMultiplier = stringIDToTypeID( "dropCapMultiplier" );

                          desc18.putInteger( iddropCapMultiplier, 1 );

                          var idautoLeadingPercentage = stringIDToTypeID( "autoLeadingPercentage" );

                          desc18.putDouble( idautoLeadingPercentage, 1.200000 );

                          var idleadingType = stringIDToTypeID( "leadingType" );

                          var idleadingType = stringIDToTypeID( "leadingType" );

                          var idleadingBelow = stringIDToTypeID( "leadingBelow" );

                          desc18.putEnumerated( idleadingType, idleadingType, idleadingBelow );

                          var iddirectionType = stringIDToTypeID( "directionType" );

                          var iddirectionType = stringIDToTypeID( "directionType" );

                          var iddirLeftToRight = stringIDToTypeID( "dirLeftToRight" );

                          desc18.putEnumerated( iddirectionType, iddirectionType, iddirLeftToRight );

                          var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );

                          var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );

                          var idjustifMethodDefault = stringIDToTypeID( "justifMethodDefault" );

                          desc18.putEnumerated( idjustificationMethodType, idjustificationMethodType, idjustifMethodDefault );

                          var idhyphenate = stringIDToTypeID( "hyphenate" );

                          desc18.putBoolean( idhyphenate, false );

                          var idhyphenateWordSize = stringIDToTypeID( "hyphenateWordSize" );

                          desc18.putInteger( idhyphenateWordSize, 6 );

                          var idhyphenatePreLength = stringIDToTypeID( "hyphenatePreLength" );

                          desc18.putInteger( idhyphenatePreLength, 2 );

                          var idhyphenatePostLength = stringIDToTypeID( "hyphenatePostLength" );

                          desc18.putInteger( idhyphenatePostLength, 2 );

                          var idhyphenateLimit = stringIDToTypeID( "hyphenateLimit" );

                          desc18.putInteger( idhyphenateLimit, 0 );

                          var idhyphenationZone = stringIDToTypeID( "hyphenationZone" );

                          desc18.putDouble( idhyphenationZone, 36.000000 );

                          var idhyphenateCapitalized = stringIDToTypeID( "hyphenateCapitalized" );

                          desc18.putBoolean( idhyphenateCapitalized, true );

                          var idhyphenationPreference = stringIDToTypeID( "hyphenationPreference" );

                          desc18.putDouble( idhyphenationPreference, 0.500000 );

                          var idjustificationWordMinimum = stringIDToTypeID( "justificationWordMinimum" );

                          desc18.putDouble( idjustificationWordMinimum, 0.800000 );

                          var idjustificationWordDesired = stringIDToTypeID( "justificationWordDesired" );

                          desc18.putDouble( idjustificationWordDesired, 1.000000 );

                          var idjustificationWordMaximum = stringIDToTypeID( "justificationWordMaximum" );

                          desc18.putDouble( idjustificationWordMaximum, 1.330000 );

                          var idjustificationLetterMinimum = stringIDToTypeID( "justificationLetterMinimum" );

                          desc18.putDouble( idjustificationLetterMinimum, 0.000000 );

                          var idjustificationLetterDesired = stringIDToTypeID( "justificationLetterDesired" );

                          desc18.putDouble( idjustificationLetterDesired, 0.000000 );

                          var idjustificationLetterMaximum = stringIDToTypeID( "justificationLetterMaximum" );

                          desc18.putDouble( idjustificationLetterMaximum, 0.000000 );

                          var idjustificationGlyphMinimum = stringIDToTypeID( "justificationGlyphMinimum" );

                          desc18.putDouble( idjustificationGlyphMinimum, 1.000000 );

                          var idjustificationGlyphDesired = stringIDToTypeID( "justificationGlyphDesired" );

                          desc18.putDouble( idjustificationGlyphDesired, 1.000000 );

                          var idjustificationGlyphMaximum = stringIDToTypeID( "justificationGlyphMaximum" );

                          desc18.putDouble( idjustificationGlyphMaximum, 1.000000 );

                          var idsingleWordJustification = stringIDToTypeID( "singleWordJustification" );

                          var idAlg = charIDToTypeID( "Alg " );

                          var idJstA = charIDToTypeID( "JstA" );

                          desc18.putEnumerated( idsingleWordJustification, idAlg, idJstA );

                          var idhangingRoman = stringIDToTypeID( "hangingRoman" );

                          desc18.putBoolean( idhangingRoman, false );

                          var idautoTCY = stringIDToTypeID( "autoTCY" );

                          desc18.putInteger( idautoTCY, 1 );

                          var idkeepTogether = stringIDToTypeID( "keepTogether" );

                          desc18.putBoolean( idkeepTogether, true );

                          var idburasagari = stringIDToTypeID( "burasagari" );

                          var idburasagari = stringIDToTypeID( "burasagari" );

                          var idburasagariNone = stringIDToTypeID( "burasagariNone" );

                          desc18.putEnumerated( idburasagari, idburasagari, idburasagariNone );

                          var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );

                          var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );

                          var idpushIn = stringIDToTypeID( "pushIn" );

                          desc18.putEnumerated( idpreferredKinsokuOrder, idpreferredKinsokuOrder, idpushIn );

                          var idkurikaeshiMojiShori = stringIDToTypeID( "kurikaeshiMojiShori" );

                          desc18.putBoolean( idkurikaeshiMojiShori, false );

                          var idtextEveryLineComposer = stringIDToTypeID( "textEveryLineComposer" );

                          desc18.putBoolean( idtextEveryLineComposer, false );

                          var idtextComposerEngine = stringIDToTypeID( "textComposerEngine" );

                          var idtextComposerEngine = stringIDToTypeID( "textComposerEngine" );

                          var idtextLatinCJKComposer = stringIDToTypeID( "textLatinCJKComposer" );

                          desc18.putEnumerated( idtextComposerEngine, idtextComposerEngine, idtextLatinCJKComposer );

                          var iddefaultTabWidth = stringIDToTypeID( "defaultTabWidth" );

                          desc18.putDouble( iddefaultTabWidth, 36.000000 );

                          var iddefaultStyle = stringIDToTypeID( "defaultStyle" );

                              var desc19 = new ActionDescriptor();

                              var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

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

                              var idFntN = charIDToTypeID( "FntN" );

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

                              var idFntS = charIDToTypeID( "FntS" );

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

                              var idScrp = charIDToTypeID( "Scrp" );

                              desc19.putInteger( idScrp, 0 );

                              var idFntT = charIDToTypeID( "FntT" );

                              desc19.putInteger( idFntT, 0 );

                              var idSz = charIDToTypeID( "Sz  " );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( idSz, idPnt, 48.000000 );

                              var idHrzS = charIDToTypeID( "HrzS" );

                              desc19.putDouble( idHrzS, 100.000000 );

                              var idVrtS = charIDToTypeID( "VrtS" );

                              desc19.putDouble( idVrtS, 100.000000 );

                              var idsyntheticBold = stringIDToTypeID( "syntheticBold" );

                              desc19.putBoolean( idsyntheticBold, false );

                              var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );

                              desc19.putBoolean( idsyntheticItalic, false );

                              var idautoLeading = stringIDToTypeID( "autoLeading" );

                              desc19.putBoolean( idautoLeading, true );

                              var idTrck = charIDToTypeID( "Trck" );

                              desc19.putInteger( idTrck, 0 );

                              var idBsln = charIDToTypeID( "Bsln" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( idBsln, idPnt, 0.000000 );

                              var idcharacterRotation = stringIDToTypeID( "characterRotation" );

                              desc19.putDouble( idcharacterRotation, 0.000000 );

                              var idAtKr = charIDToTypeID( "AtKr" );

                              var idAtKr = charIDToTypeID( "AtKr" );

                              var idmetricsKern = stringIDToTypeID( "metricsKern" );

                              desc19.putEnumerated( idAtKr, idAtKr, idmetricsKern );

                              var idfontCaps = stringIDToTypeID( "fontCaps" );

                              var idfontCaps = stringIDToTypeID( "fontCaps" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc19.putEnumerated( idfontCaps, idfontCaps, idNrml );

                              var iddigitSet = stringIDToTypeID( "digitSet" );

                              var iddigitSet = stringIDToTypeID( "digitSet" );

                              var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                              desc19.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                              var iddirOverride = stringIDToTypeID( "dirOverride" );

                              var iddirOverride = stringIDToTypeID( "dirOverride" );

                              var iddirOverrideDefault = stringIDToTypeID( "dirOverrideDefault" );

                              desc19.putEnumerated( iddirOverride, iddirOverride, iddirOverrideDefault );

                              var idkashidas = stringIDToTypeID( "kashidas" );

                              var idkashidas = stringIDToTypeID( "kashidas" );

                              var idkashidaDefault = stringIDToTypeID( "kashidaDefault" );

                              desc19.putEnumerated( idkashidas, idkashidas, idkashidaDefault );

                              var iddiacVPos = stringIDToTypeID( "diacVPos" );

                              var iddiacVPos = stringIDToTypeID( "diacVPos" );

                              var iddiacVPosOpenType = stringIDToTypeID( "diacVPosOpenType" );

                              desc19.putEnumerated( iddiacVPos, iddiacVPos, iddiacVPosOpenType );

                              var iddiacXOffset = stringIDToTypeID( "diacXOffset" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( iddiacXOffset, idPnt, 0.000000 );

                              var iddiacYOffset = stringIDToTypeID( "diacYOffset" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( iddiacYOffset, idPnt, 0.000000 );

                              var idbaseline = stringIDToTypeID( "baseline" );

                              var idbaseline = stringIDToTypeID( "baseline" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc19.putEnumerated( idbaseline, idbaseline, idNrml );

                              var idotbaseline = stringIDToTypeID( "otbaseline" );

                              var idotbaseline = stringIDToTypeID( "otbaseline" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc19.putEnumerated( idotbaseline, idotbaseline, idNrml );

                              var idstrikethrough = stringIDToTypeID( "strikethrough" );

                              var idstrikethrough = stringIDToTypeID( "strikethrough" );

                              var idstrikethroughOff = stringIDToTypeID( "strikethroughOff" );

                              desc19.putEnumerated( idstrikethrough, idstrikethrough, idstrikethroughOff );

                              var idUndl = charIDToTypeID( "Undl" );

                              var idUndl = charIDToTypeID( "Undl" );

                              var idunderlineOff = stringIDToTypeID( "underlineOff" );

                              desc19.putEnumerated( idUndl, idUndl, idunderlineOff );

                              var idunderlineOffset = stringIDToTypeID( "underlineOffset" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( idunderlineOffset, idPnt, 0.000000 );

                              var idligature = stringIDToTypeID( "ligature" );

                              desc19.putBoolean( idligature, true );

                              var idaltligature = stringIDToTypeID( "altligature" );

                              desc19.putBoolean( idaltligature, false );

                              var idcontextualLigatures = stringIDToTypeID( "contextualLigatures" );

                              desc19.putBoolean( idcontextualLigatures, false );

                              var idalternateLigatures = stringIDToTypeID( "alternateLigatures" );

                              desc19.putBoolean( idalternateLigatures, false );

                              var idoldStyle = stringIDToTypeID( "oldStyle" );

                              desc19.putBoolean( idoldStyle, false );

                              var idfractions = stringIDToTypeID( "fractions" );

                              desc19.putBoolean( idfractions, false );

                              var idordinals = stringIDToTypeID( "ordinals" );

                              desc19.putBoolean( idordinals, false );

                              var idswash = stringIDToTypeID( "swash" );

                              desc19.putBoolean( idswash, false );

                              var idtitling = stringIDToTypeID( "titling" );

                              desc19.putBoolean( idtitling, false );

                              var idconnectionForms = stringIDToTypeID( "connectionForms" );

                              desc19.putBoolean( idconnectionForms, false );

                              var idstylisticAlternates = stringIDToTypeID( "stylisticAlternates" );

                              desc19.putBoolean( idstylisticAlternates, false );

                              var idornaments = stringIDToTypeID( "ornaments" );

                              desc19.putBoolean( idornaments, false );

                              var idjustificationAlternates = stringIDToTypeID( "justificationAlternates" );

                              desc19.putBoolean( idjustificationAlternates, false );

                              var idfigureStyle = stringIDToTypeID( "figureStyle" );

                              var idfigureStyle = stringIDToTypeID( "figureStyle" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc19.putEnumerated( idfigureStyle, idfigureStyle, idNrml );

                              var idproportionalMetrics = stringIDToTypeID( "proportionalMetrics" );

                              desc19.putBoolean( idproportionalMetrics, false );

                              var idkana = stringIDToTypeID( "kana" );

                              desc19.putBoolean( idkana, false );

                              var iditalics = stringIDToTypeID( "italics" );

                              desc19.putBoolean( iditalics, false );

                              var idruby = stringIDToTypeID( "ruby" );

                              desc19.putBoolean( idruby, false );

                              var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                              var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                              var idrotated = stringIDToTypeID( "rotated" );

                              desc19.putEnumerated( idbaselineDirection, idbaselineDirection, idrotated );

                              var idtextLanguage = stringIDToTypeID( "textLanguage" );

                              var idtextLanguage = stringIDToTypeID( "textLanguage" );

                              var idenglishLanguage = stringIDToTypeID( "englishLanguage" );

                              desc19.putEnumerated( idtextLanguage, idtextLanguage, idenglishLanguage );

                              var idmojiZume = stringIDToTypeID( "mojiZume" );

                              desc19.putDouble( idmojiZume, 0.000000 );

                              var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                              var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                              var idroman = stringIDToTypeID( "roman" );

                              desc19.putEnumerated( idgridAlignment, idgridAlignment, idroman );

                              var idenableWariChu = stringIDToTypeID( "enableWariChu" );

                              desc19.putBoolean( idenableWariChu, false );

                              var idwariChuCount = stringIDToTypeID( "wariChuCount" );

                              desc19.putInteger( idwariChuCount, 2 );

                              var idwariChuLineGap = stringIDToTypeID( "wariChuLineGap" );

                              desc19.putInteger( idwariChuLineGap, 0 );

                              var idwariChuScale = stringIDToTypeID( "wariChuScale" );

                              desc19.putDouble( idwariChuScale, 0.500000 );

                              var idwariChuWidow = stringIDToTypeID( "wariChuWidow" );

                              desc19.putInteger( idwariChuWidow, 2 );

                              var idwariChuOrphan = stringIDToTypeID( "wariChuOrphan" );

                              desc19.putInteger( idwariChuOrphan, 2 );

                              var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                              var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                              var idwariChuAutoJustify = stringIDToTypeID( "wariChuAutoJustify" );

                              desc19.putEnumerated( idwariChuJustification, idwariChuJustification, idwariChuAutoJustify );

                              var idtcyUpDown = stringIDToTypeID( "tcyUpDown" );

                              desc19.putInteger( idtcyUpDown, 0 );

                              var idtcyLeftRight = stringIDToTypeID( "tcyLeftRight" );

                              desc19.putInteger( idtcyLeftRight, 0 );

                              var idleftAki = stringIDToTypeID( "leftAki" );

                              desc19.putDouble( idleftAki, -1.000000 );

                              var idrightAki = stringIDToTypeID( "rightAki" );

                              desc19.putDouble( idrightAki, -1.000000 );

                              var idjiDori = stringIDToTypeID( "jiDori" );

                              desc19.putInteger( idjiDori, 0 );

                              var idnoBreak = stringIDToTypeID( "noBreak" );

                              desc19.putBoolean( idnoBreak, false );

                              var idClr = charIDToTypeID( "Clr " );

                                  var desc20 = new ActionDescriptor();

                                  var idRd = charIDToTypeID( "Rd  " );

                                  desc20.putDouble( idRd, 0.000000 );

                                  var idGrn = charIDToTypeID( "Grn " );

                                  desc20.putDouble( idGrn, 0.000000 );

                                  var idBl = charIDToTypeID( "Bl  " );

                                  desc20.putDouble( idBl, 0.000000 );

                              var idRGBC = charIDToTypeID( "RGBC" );

                              desc19.putObject( idClr, idRGBC, desc20 );

                              var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                  var desc21 = new ActionDescriptor();

                                  var idRd = charIDToTypeID( "Rd  " );

                                  desc21.putDouble( idRd, 0.000000 );

                                  var idGrn = charIDToTypeID( "Grn " );

                                  desc21.putDouble( idGrn, 0.000000 );

                                  var idBl = charIDToTypeID( "Bl  " );

                                  desc21.putDouble( idBl, 0.000000 );

                              var idRGBC = charIDToTypeID( "RGBC" );

                              desc19.putObject( idstrokeColor, idRGBC, desc21 );

                              var idFl = charIDToTypeID( "Fl  " );

                              desc19.putBoolean( idFl, true );

                              var idStrk = charIDToTypeID( "Strk" );

                              desc19.putBoolean( idStrk, false );

                              var idfillFirst = stringIDToTypeID( "fillFirst" );

                              desc19.putBoolean( idfillFirst, true );

                              var idfillOverPrint = stringIDToTypeID( "fillOverPrint" );

                              desc19.putBoolean( idfillOverPrint, false );

                              var idstrokeOverPrint = stringIDToTypeID( "strokeOverPrint" );

                              desc19.putBoolean( idstrokeOverPrint, false );

                              var idlineCap = stringIDToTypeID( "lineCap" );

                              var idlineCap = stringIDToTypeID( "lineCap" );

                              var idbuttCap = stringIDToTypeID( "buttCap" );

                              desc19.putEnumerated( idlineCap, idlineCap, idbuttCap );

                              var idlineJoin = stringIDToTypeID( "lineJoin" );

                              var idlineJoin = stringIDToTypeID( "lineJoin" );

                              var idmiterJoin = stringIDToTypeID( "miterJoin" );

                              desc19.putEnumerated( idlineJoin, idlineJoin, idmiterJoin );

                              var idlineWidth = stringIDToTypeID( "lineWidth" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( idlineWidth, idPnt, 4.000000 );

                              var idmiterLimit = stringIDToTypeID( "miterLimit" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc19.putUnitDouble( idmiterLimit, idPnt, 16.000000 );

                              var idlineDashoffset = stringIDToTypeID( "lineDashoffset" );

                              desc19.putDouble( idlineDashoffset, 0.000000 );

                          var idTxtS = charIDToTypeID( "TxtS" );

                          desc18.putObject( iddefaultStyle, idTxtS, desc19 );

                      var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );

                      desc17.putObject( idparagraphStyle, idparagraphStyle, desc18 );

                  var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );

                  list3.putObject( idparagraphStyleRange, desc17 );

                      var desc22 = new ActionDescriptor();

                      var idFrom = charIDToTypeID( "From" );

                      desc22.putInteger( idFrom, 28 );

                      var idT = charIDToTypeID( "T   " );

                      desc22.putInteger( idT, 48 );

                      var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );

                          var desc23 = new ActionDescriptor();

                          var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );

                          desc23.putBoolean( idstyleSheetHasParent, true );

                          var idAlgn = charIDToTypeID( "Algn" );

                          var idAlg = charIDToTypeID( "Alg " );

                          var idLeft = charIDToTypeID( "Left" );

                          desc23.putEnumerated( idAlgn, idAlg, idLeft );

                          var idfirstLineIndent = stringIDToTypeID( "firstLineIndent" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc23.putUnitDouble( idfirstLineIndent, idPnt, 0.000000 );

                          var idstartIndent = stringIDToTypeID( "startIndent" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc23.putUnitDouble( idstartIndent, idPnt, 0.000000 );

                          var idendIndent = stringIDToTypeID( "endIndent" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc23.putUnitDouble( idendIndent, idPnt, 0.000000 );

                          var idspaceBefore = stringIDToTypeID( "spaceBefore" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc23.putUnitDouble( idspaceBefore, idPnt, 0.000000 );

                          var idspaceAfter = stringIDToTypeID( "spaceAfter" );

                          var idPnt = charIDToTypeID( "#Pnt" );

                          desc23.putUnitDouble( idspaceAfter, idPnt, 0.000000 );

                          var iddropCapMultiplier = stringIDToTypeID( "dropCapMultiplier" );

                          desc23.putInteger( iddropCapMultiplier, 1 );

                          var idautoLeadingPercentage = stringIDToTypeID( "autoLeadingPercentage" );

                          desc23.putDouble( idautoLeadingPercentage, 1.200000 );

                          var idleadingType = stringIDToTypeID( "leadingType" );

                          var idleadingType = stringIDToTypeID( "leadingType" );

                          var idleadingBelow = stringIDToTypeID( "leadingBelow" );

                          desc23.putEnumerated( idleadingType, idleadingType, idleadingBelow );

                          var iddirectionType = stringIDToTypeID( "directionType" );

                          var iddirectionType = stringIDToTypeID( "directionType" );

                          var iddirLeftToRight = stringIDToTypeID( "dirLeftToRight" );

                          desc23.putEnumerated( iddirectionType, iddirectionType, iddirLeftToRight );

                          var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );

                          var idjustificationMethodType = stringIDToTypeID( "justificationMethodType" );

                          var idjustifMethodDefault = stringIDToTypeID( "justifMethodDefault" );

                          desc23.putEnumerated( idjustificationMethodType, idjustificationMethodType, idjustifMethodDefault );

                          var idhyphenate = stringIDToTypeID( "hyphenate" );

                          desc23.putBoolean( idhyphenate, false );

                          var idhyphenateWordSize = stringIDToTypeID( "hyphenateWordSize" );

                          desc23.putInteger( idhyphenateWordSize, 6 );

                          var idhyphenatePreLength = stringIDToTypeID( "hyphenatePreLength" );

                          desc23.putInteger( idhyphenatePreLength, 2 );

                          var idhyphenatePostLength = stringIDToTypeID( "hyphenatePostLength" );

                          desc23.putInteger( idhyphenatePostLength, 2 );

                          var idhyphenateLimit = stringIDToTypeID( "hyphenateLimit" );

                          desc23.putInteger( idhyphenateLimit, 0 );

                          var idhyphenationZone = stringIDToTypeID( "hyphenationZone" );

                          desc23.putDouble( idhyphenationZone, 36.000000 );

                          var idhyphenateCapitalized = stringIDToTypeID( "hyphenateCapitalized" );

                          desc23.putBoolean( idhyphenateCapitalized, true );

                          var idhyphenationPreference = stringIDToTypeID( "hyphenationPreference" );

                          desc23.putDouble( idhyphenationPreference, 0.500000 );

                          var idjustificationWordMinimum = stringIDToTypeID( "justificationWordMinimum" );

                          desc23.putDouble( idjustificationWordMinimum, 0.800000 );

                          var idjustificationWordDesired = stringIDToTypeID( "justificationWordDesired" );

                          desc23.putDouble( idjustificationWordDesired, 1.000000 );

                          var idjustificationWordMaximum = stringIDToTypeID( "justificationWordMaximum" );

                          desc23.putDouble( idjustificationWordMaximum, 1.330000 );

                          var idjustificationLetterMinimum = stringIDToTypeID( "justificationLetterMinimum" );

                          desc23.putDouble( idjustificationLetterMinimum, 0.000000 );

                          var idjustificationLetterDesired = stringIDToTypeID( "justificationLetterDesired" );

                          desc23.putDouble( idjustificationLetterDesired, 0.000000 );

                          var idjustificationLetterMaximum = stringIDToTypeID( "justificationLetterMaximum" );

                          desc23.putDouble( idjustificationLetterMaximum, 0.000000 );

                          var idjustificationGlyphMinimum = stringIDToTypeID( "justificationGlyphMinimum" );

                          desc23.putDouble( idjustificationGlyphMinimum, 1.000000 );

                          var idjustificationGlyphDesired = stringIDToTypeID( "justificationGlyphDesired" );

                          desc23.putDouble( idjustificationGlyphDesired, 1.000000 );

                          var idjustificationGlyphMaximum = stringIDToTypeID( "justificationGlyphMaximum" );

                          desc23.putDouble( idjustificationGlyphMaximum, 1.000000 );

                          var idsingleWordJustification = stringIDToTypeID( "singleWordJustification" );

                          var idAlg = charIDToTypeID( "Alg " );

                          var idJstA = charIDToTypeID( "JstA" );

                          desc23.putEnumerated( idsingleWordJustification, idAlg, idJstA );

                          var idhangingRoman = stringIDToTypeID( "hangingRoman" );

                          desc23.putBoolean( idhangingRoman, false );

                          var idautoTCY = stringIDToTypeID( "autoTCY" );

                          desc23.putInteger( idautoTCY, 1 );

                          var idkeepTogether = stringIDToTypeID( "keepTogether" );

                          desc23.putBoolean( idkeepTogether, true );

                          var idburasagari = stringIDToTypeID( "burasagari" );

                          var idburasagari = stringIDToTypeID( "burasagari" );

                          var idburasagariNone = stringIDToTypeID( "burasagariNone" );

                          desc23.putEnumerated( idburasagari, idburasagari, idburasagariNone );

                          var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );

                          var idpreferredKinsokuOrder = stringIDToTypeID( "preferredKinsokuOrder" );

                          var idpushIn = stringIDToTypeID( "pushIn" );

                          desc23.putEnumerated( idpreferredKinsokuOrder, idpreferredKinsokuOrder, idpushIn );

                          var idkurikaeshiMojiShori = stringIDToTypeID( "kurikaeshiMojiShori" );

                          desc23.putBoolean( idkurikaeshiMojiShori, false );

                          var idtextEveryLineComposer = stringIDToTypeID( "textEveryLineComposer" );

                          desc23.putBoolean( idtextEveryLineComposer, false );

                          var idtextComposerEngine = stringIDToTypeID( "textComposerEngine" );

                          var idtextComposerEngine = stringIDToTypeID( "textComposerEngine" );

                          var idtextLatinCJKComposer = stringIDToTypeID( "textLatinCJKComposer" );

                          desc23.putEnumerated( idtextComposerEngine, idtextComposerEngine, idtextLatinCJKComposer );

                          var iddefaultTabWidth = stringIDToTypeID( "defaultTabWidth" );

                          desc23.putDouble( iddefaultTabWidth, 36.000000 );

                          var iddefaultStyle = stringIDToTypeID( "defaultStyle" );

                              var desc24 = new ActionDescriptor();

                              var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );

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

                              var idFntN = charIDToTypeID( "FntN" );

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

                              var idFntS = charIDToTypeID( "FntS" );

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

                              var idScrp = charIDToTypeID( "Scrp" );

                              desc24.putInteger( idScrp, 0 );

                              var idFntT = charIDToTypeID( "FntT" );

                              desc24.putInteger( idFntT, 0 );

                              var idSz = charIDToTypeID( "Sz  " );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( idSz, idPnt, 48.000000 );

                              var idHrzS = charIDToTypeID( "HrzS" );

                              desc24.putDouble( idHrzS, 100.000000 );

                              var idVrtS = charIDToTypeID( "VrtS" );

                              desc24.putDouble( idVrtS, 100.000000 );

                              var idsyntheticBold = stringIDToTypeID( "syntheticBold" );

                              desc24.putBoolean( idsyntheticBold, false );

                              var idsyntheticItalic = stringIDToTypeID( "syntheticItalic" );

                              desc24.putBoolean( idsyntheticItalic, false );

                              var idautoLeading = stringIDToTypeID( "autoLeading" );

                              desc24.putBoolean( idautoLeading, true );

                              var idTrck = charIDToTypeID( "Trck" );

                              desc24.putInteger( idTrck, 0 );

                              var idBsln = charIDToTypeID( "Bsln" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( idBsln, idPnt, 0.000000 );

                              var idcharacterRotation = stringIDToTypeID( "characterRotation" );

                              desc24.putDouble( idcharacterRotation, 0.000000 );

                              var idAtKr = charIDToTypeID( "AtKr" );

                              var idAtKr = charIDToTypeID( "AtKr" );

                              var idmetricsKern = stringIDToTypeID( "metricsKern" );

                              desc24.putEnumerated( idAtKr, idAtKr, idmetricsKern );

                              var idfontCaps = stringIDToTypeID( "fontCaps" );

                              var idfontCaps = stringIDToTypeID( "fontCaps" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc24.putEnumerated( idfontCaps, idfontCaps, idNrml );

                              var iddigitSet = stringIDToTypeID( "digitSet" );

                              var iddigitSet = stringIDToTypeID( "digitSet" );

                              var iddefaultDigits = stringIDToTypeID( "defaultDigits" );

                              desc24.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );

                              var iddirOverride = stringIDToTypeID( "dirOverride" );

                              var iddirOverride = stringIDToTypeID( "dirOverride" );

                              var iddirOverrideDefault = stringIDToTypeID( "dirOverrideDefault" );

                              desc24.putEnumerated( iddirOverride, iddirOverride, iddirOverrideDefault );

                              var idkashidas = stringIDToTypeID( "kashidas" );

                              var idkashidas = stringIDToTypeID( "kashidas" );

                              var idkashidaDefault = stringIDToTypeID( "kashidaDefault" );

                              desc24.putEnumerated( idkashidas, idkashidas, idkashidaDefault );

                              var iddiacVPos = stringIDToTypeID( "diacVPos" );

                              var iddiacVPos = stringIDToTypeID( "diacVPos" );

                              var iddiacVPosOpenType = stringIDToTypeID( "diacVPosOpenType" );

                              desc24.putEnumerated( iddiacVPos, iddiacVPos, iddiacVPosOpenType );

                              var iddiacXOffset = stringIDToTypeID( "diacXOffset" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( iddiacXOffset, idPnt, 0.000000 );

                              var iddiacYOffset = stringIDToTypeID( "diacYOffset" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( iddiacYOffset, idPnt, 0.000000 );

                              var idbaseline = stringIDToTypeID( "baseline" );

                              var idbaseline = stringIDToTypeID( "baseline" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc24.putEnumerated( idbaseline, idbaseline, idNrml );

                              var idotbaseline = stringIDToTypeID( "otbaseline" );

                              var idotbaseline = stringIDToTypeID( "otbaseline" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc24.putEnumerated( idotbaseline, idotbaseline, idNrml );

                              var idstrikethrough = stringIDToTypeID( "strikethrough" );

                              var idstrikethrough = stringIDToTypeID( "strikethrough" );

                              var idstrikethroughOff = stringIDToTypeID( "strikethroughOff" );

                              desc24.putEnumerated( idstrikethrough, idstrikethrough, idstrikethroughOff );

                              var idUndl = charIDToTypeID( "Undl" );

                              var idUndl = charIDToTypeID( "Undl" );

                              var idunderlineOff = stringIDToTypeID( "underlineOff" );

                              desc24.putEnumerated( idUndl, idUndl, idunderlineOff );

                              var idunderlineOffset = stringIDToTypeID( "underlineOffset" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( idunderlineOffset, idPnt, 0.000000 );

                              var idligature = stringIDToTypeID( "ligature" );

                              desc24.putBoolean( idligature, true );

                              var idaltligature = stringIDToTypeID( "altligature" );

                              desc24.putBoolean( idaltligature, false );

                              var idcontextualLigatures = stringIDToTypeID( "contextualLigatures" );

                              desc24.putBoolean( idcontextualLigatures, false );

                              var idalternateLigatures = stringIDToTypeID( "alternateLigatures" );

                              desc24.putBoolean( idalternateLigatures, false );

                              var idoldStyle = stringIDToTypeID( "oldStyle" );

                              desc24.putBoolean( idoldStyle, false );

                              var idfractions = stringIDToTypeID( "fractions" );

                              desc24.putBoolean( idfractions, false );

                              var idordinals = stringIDToTypeID( "ordinals" );

                              desc24.putBoolean( idordinals, false );

                              var idswash = stringIDToTypeID( "swash" );

                              desc24.putBoolean( idswash, false );

                              var idtitling = stringIDToTypeID( "titling" );

                              desc24.putBoolean( idtitling, false );

                              var idconnectionForms = stringIDToTypeID( "connectionForms" );

                              desc24.putBoolean( idconnectionForms, false );

                              var idstylisticAlternates = stringIDToTypeID( "stylisticAlternates" );

                              desc24.putBoolean( idstylisticAlternates, false );

                              var idornaments = stringIDToTypeID( "ornaments" );

                              desc24.putBoolean( idornaments, false );

                              var idjustificationAlternates = stringIDToTypeID( "justificationAlternates" );

                              desc24.putBoolean( idjustificationAlternates, false );

                              var idfigureStyle = stringIDToTypeID( "figureStyle" );

                              var idfigureStyle = stringIDToTypeID( "figureStyle" );

                              var idNrml = charIDToTypeID( "Nrml" );

                              desc24.putEnumerated( idfigureStyle, idfigureStyle, idNrml );

                              var idproportionalMetrics = stringIDToTypeID( "proportionalMetrics" );

                              desc24.putBoolean( idproportionalMetrics, false );

                              var idkana = stringIDToTypeID( "kana" );

                              desc24.putBoolean( idkana, false );

                              var iditalics = stringIDToTypeID( "italics" );

                              desc24.putBoolean( iditalics, false );

                              var idruby = stringIDToTypeID( "ruby" );

                              desc24.putBoolean( idruby, false );

                              var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                              var idbaselineDirection = stringIDToTypeID( "baselineDirection" );

                              var idrotated = stringIDToTypeID( "rotated" );

                              desc24.putEnumerated( idbaselineDirection, idbaselineDirection, idrotated );

                              var idtextLanguage = stringIDToTypeID( "textLanguage" );

                              var idtextLanguage = stringIDToTypeID( "textLanguage" );

                              var idenglishLanguage = stringIDToTypeID( "englishLanguage" );

                              desc24.putEnumerated( idtextLanguage, idtextLanguage, idenglishLanguage );

                              var idmojiZume = stringIDToTypeID( "mojiZume" );

                              desc24.putDouble( idmojiZume, 0.000000 );

                              var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                              var idgridAlignment = stringIDToTypeID( "gridAlignment" );

                              var idroman = stringIDToTypeID( "roman" );

                              desc24.putEnumerated( idgridAlignment, idgridAlignment, idroman );

                              var idenableWariChu = stringIDToTypeID( "enableWariChu" );

                              desc24.putBoolean( idenableWariChu, false );

                              var idwariChuCount = stringIDToTypeID( "wariChuCount" );

                              desc24.putInteger( idwariChuCount, 2 );

                              var idwariChuLineGap = stringIDToTypeID( "wariChuLineGap" );

                              desc24.putInteger( idwariChuLineGap, 0 );

                              var idwariChuScale = stringIDToTypeID( "wariChuScale" );

                              desc24.putDouble( idwariChuScale, 0.500000 );

                              var idwariChuWidow = stringIDToTypeID( "wariChuWidow" );

                              desc24.putInteger( idwariChuWidow, 2 );

                              var idwariChuOrphan = stringIDToTypeID( "wariChuOrphan" );

                              desc24.putInteger( idwariChuOrphan, 2 );

                              var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                              var idwariChuJustification = stringIDToTypeID( "wariChuJustification" );

                              var idwariChuAutoJustify = stringIDToTypeID( "wariChuAutoJustify" );

                              desc24.putEnumerated( idwariChuJustification, idwariChuJustification, idwariChuAutoJustify );

                              var idtcyUpDown = stringIDToTypeID( "tcyUpDown" );

                              desc24.putInteger( idtcyUpDown, 0 );

                              var idtcyLeftRight = stringIDToTypeID( "tcyLeftRight" );

                              desc24.putInteger( idtcyLeftRight, 0 );

                              var idleftAki = stringIDToTypeID( "leftAki" );

                              desc24.putDouble( idleftAki, -1.000000 );

                              var idrightAki = stringIDToTypeID( "rightAki" );

                              desc24.putDouble( idrightAki, -1.000000 );

                              var idjiDori = stringIDToTypeID( "jiDori" );

                              desc24.putInteger( idjiDori, 0 );

                              var idnoBreak = stringIDToTypeID( "noBreak" );

                              desc24.putBoolean( idnoBreak, false );

                              var idClr = charIDToTypeID( "Clr " );

                                  var desc25 = new ActionDescriptor();

                                  var idRd = charIDToTypeID( "Rd  " );

                                  desc25.putDouble( idRd, 0.000000 );

                                  var idGrn = charIDToTypeID( "Grn " );

                                  desc25.putDouble( idGrn, 0.000000 );

                                  var idBl = charIDToTypeID( "Bl  " );

                                  desc25.putDouble( idBl, 0.000000 );

                              var idRGBC = charIDToTypeID( "RGBC" );

                              desc24.putObject( idClr, idRGBC, desc25 );

                              var idstrokeColor = stringIDToTypeID( "strokeColor" );

                                  var desc26 = new ActionDescriptor();

                                  var idRd = charIDToTypeID( "Rd  " );

                                  desc26.putDouble( idRd, 0.000000 );

                                  var idGrn = charIDToTypeID( "Grn " );

                                  desc26.putDouble( idGrn, 0.000000 );

                                  var idBl = charIDToTypeID( "Bl  " );

                                  desc26.putDouble( idBl, 0.000000 );

                              var idRGBC = charIDToTypeID( "RGBC" );

                              desc24.putObject( idstrokeColor, idRGBC, desc26 );

                              var idFl = charIDToTypeID( "Fl  " );

                              desc24.putBoolean( idFl, true );

                              var idStrk = charIDToTypeID( "Strk" );

                              desc24.putBoolean( idStrk, false );

                              var idfillFirst = stringIDToTypeID( "fillFirst" );

                              desc24.putBoolean( idfillFirst, true );

                              var idfillOverPrint = stringIDToTypeID( "fillOverPrint" );

                              desc24.putBoolean( idfillOverPrint, false );

                              var idstrokeOverPrint = stringIDToTypeID( "strokeOverPrint" );

                              desc24.putBoolean( idstrokeOverPrint, false );

                              var idlineCap = stringIDToTypeID( "lineCap" );

                              var idlineCap = stringIDToTypeID( "lineCap" );

                              var idbuttCap = stringIDToTypeID( "buttCap" );

                              desc24.putEnumerated( idlineCap, idlineCap, idbuttCap );

                              var idlineJoin = stringIDToTypeID( "lineJoin" );

                              var idlineJoin = stringIDToTypeID( "lineJoin" );

                              var idmiterJoin = stringIDToTypeID( "miterJoin" );

                              desc24.putEnumerated( idlineJoin, idlineJoin, idmiterJoin );

                              var idlineWidth = stringIDToTypeID( "lineWidth" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( idlineWidth, idPnt, 4.000000 );

                              var idmiterLimit = stringIDToTypeID( "miterLimit" );

                              var idPnt = charIDToTypeID( "#Pnt" );

                              desc24.putUnitDouble( idmiterLimit, idPnt, 16.000000 );

                              var idlineDashoffset = stringIDToTypeID( "lineDashoffset" );

                              desc24.putDouble( idlineDashoffset, 0.000000 );

                          var idTxtS = charIDToTypeID( "TxtS" );

                          desc23.putObject( iddefaultStyle, idTxtS, desc24 );

                      var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );

                      desc22.putObject( idparagraphStyle, idparagraphStyle, desc23 );

                  var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );

                  list3.putObject( idparagraphStyleRange, desc22 );

              desc6.putList( idparagraphStyleRange, list3 );

              var idkerningRange = stringIDToTypeID( "kerningRange" );

                  var list4 = new ActionList();

              desc6.putList( idkerningRange, list4 );

          var idTxLr = charIDToTypeID( "TxLr" );

          desc5.putObject( idT, idTxLr, desc6 );

      executeAction( idsetd, desc5, DialogModes.NO );