Superscript just the "2" in a text string "m2"?

Hi,
I need to know how to change all occurrences of the text "m2" in an indesign CS3 document, to "m2", where the "2" is styled as superscript i.e. the symbol for metres squared (I'm on the right hand side of the Atlantic as you can see!).
The text has already had a sequence of paragraph styles applied to it, therefore the "m2" occurrences throughout the document may be in several sizes and weights of a single font family, so any solutions would need to leave this formatting in place.
I have experimented with using a character style with only one attribute (superscript) in the Change Format section of find/replace, but this then changes the "m" to superscript as well.
Is this sort of thing outside the scope of Indesign's Find/Replace functionality?
Any pointers or suggestions gratefully received.
Best wishes,
Christian.

If you're working with CS3, there is a much slicker way to do just that.
In GREP mode, search for "(?<=m)2". Put just Superscript in the replace field.
Possible (!) explanation:
(?<= ...) switches on Positive Lookbehind for the '...' part of the search string. That means that only the '2's will be found with a
i preceding
text '...'. Put 'm' in the place of the dots, and it'll find all '2's preceded by an 'm'. The 'm' itself is not touched.

Similar Messages

  • Find the width of a text string inside a text box?

    Hi,
    I have a text box with a long text string in it. I would like to know what the width of the text string is so that I can scroll it inside the textbox using the text box scrollviewer.
    var sv = this.foodieItemText.GetFirstDescendantOfType<ScrollViewer>();
    sv.ScrollToHorizontalOffsetWithAnimation(this.foodieItemText.Width, 20);
    The scrolling works fine but I don't know what value to use for the width offset in the first argument to ScrollToHorizontalOffsetWithAnimation. For my purposes I want it to scroll the full length of the text string (which is longer than the actual with of
    the text box). Any ideas?

    Hi duffybr,
    Yes, there is a ScrollViewer inside TextBox template and we could scroll to the specific position as we need, however there is no direct way to get the string width in TextBox, however we could get the width in TextBlock, by measure method.
    See this discussion for more information:
    http://stackoverflow.com/questions/9126076/how-can-i-calculate-the-width-of-a-string-in-metro-without-displaying-it
    Besides, there are some third party libraries help us get the String width.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TS1702 I just updated my ipad2 to ios6.0.1 and now the stand view in maps shows no information.  The maps are there, but are just the outlines with no text or roads.  Help.

    I have just updated my ipad2 to ios6.0.1 and now having problems with the MAPS APP.  The standard view outlines the area, but it is blank, showing no text or roads.  Anyone know how to solve this?

    Have you tried a - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
     Cheers, Tom

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

    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();
                              

    That is awesome, works perfectly.
    I'll get it worked into my main script. Is this Action Manager code, and not just regular Javascript from the Scripting Dictionary? I can't tell the difference. I'll see whether or not it's actually faster than Applescript.
    Thanks. I know Scripting Listener records a bunch of stuff, but it's pretty amazing to me that playing back this line does the same thing that playing back the 1,011 lines Scripting Listener puts out.
    Thanks.

  • Find and Replace text string in HTML

    Opps... I hope this forum is not just for Outlook. My Html files reside on my hard-drive. I am looking for VBA code to open specified file names ####File.html and then find and replace text strings within the html for example "####Name" replaced
    with "YYYYY"
    I drive the "####File.html" names and the find and replace text strings from an Excel sheet. I am an artist and this Sub would give me time to paint instead of find and replace text. Thank you!
    [email protected]

    Hello Phil,
    The current forum is for developers and Outlook related programming questions. That's why I'd suggest hiring anybody for developing the code for you. You may find freelancers, for example. Try googling for any freelance-related web sites and asking such
    questions there.
    If you decide to develop an Outlook macro on your own, the
    Getting Started with VBA in Outlook 2010 article is a good place to start from.

  • How Can I replace newScale Text Strings with Custom Values?

    How Can I replace newScale Text Strings with Custom Values?
    How can I replace newScale text strings with custom values?
    All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.
    Procedure
    1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
    a) Navigate to the RequestCenter.ear/config directory.
    b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
    c) Save the file.
    d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
    e) Stop and restart the RequestCenter service.
    f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.
    g) Note down the String ID's you want to change.
    2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
    3. Create the following sub-directory: res/resources
    4. Create the following empty text files in the directory you just created:
    RequestCenter_0.properties
    RequestCenter_1.properties
    RequestCenter_2.properties
    RequestCenter_3.properties
    RequestCenter_4.properties
    RequestCenter_5.properties
    RequestCenter_6.properties
    RequestCenter_7.properties
    5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString
    Example: The StringID for "Available Work" in ServiceManager is 699.
    If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file
         699=General Inbox
    Strings are divided into the following files, based on their numeric ID:
    Strings are divided into the following files, based on their numeric ID:
    String ID  File Name
    0 to 999 -> RequestCenter_0.properties
    1000 to 1999 -> RequestCenter_1.properties
    2000 to 2999 -> RequestCenter_2.properties
    3000 to 3999 -> RequestCenter_3.properties
    4000 to 4999 -> RequestCenter_4.properties
    5000 to 5999 -> RequestCenter_5.properties
    6000 to 6999 -> RequestCenter_6.properties
    7000 to 7999 -> RequestCenter_7.properties
    6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
    7. Restart RequestCenter.
    Your customized text should be displayed.

    I've recently come across this information and it was very helpful in changing some of the inline text.
    However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.
    Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

  • Search a text string to get location

    Is there any way to search a text string in a PDF file or a page of PDF file to get the location of this text string, say (x, y, width, height)?
    Thanks a lot for your help.

    I believe that there is an Assembler command to find text in a document. I think it is DocumentText and you have an attribute called withQuads that will give you 4 points that surround the text that you are looking for.
    I am going from memory so I would have a look at the DDX reference that comes with Assembler.

  • Underlining just the word(s) in selected text string

    How do I get InDesign 2 or 3 to underline just the individual words selected and NOT the spaces?
    We work with legal documents and we have to style them exactly the way the judge has indicated (some underline everything, some just the words). This can become a time consuming endeavor when there are multi-worded court cases cited and sometimes over one hundred cites within one document.
    This was quick and easy under Quark, either from the control palette (click of a button) or the keyboard shortcut (Apple + shift + W). This shortcut closes the document in InDesign (even though the keyboard shortcut for that is supposed to be just Apple + W, both do the same thing). I could reassign the shortcut if I could find the action to link it too (but can't find the action even mentioned in the Help or the forums).
    Have checked under the Underline Options dialog, but there isn't anything there that would solve this problem.
    If there isn't a direct way to do it in InDesign, is there some sort of plug-in available that anyone knows about?
    Thanks in advance.
    LRP2

    I don't believe there's a direct way to do it in Indesign. There are some shortcuts that help.
    In CS4 you can set up a GREP search to find Words, set Change Format to change "basic character format" to include underline, then do a replace all in selection. You can set up keyboard shortcuts for some of this, but a script would be even more convenient.
    Unfortunately, with the normal "Find" function, the "character" wildcard also seems to find spaces, and there isn't a "whole word" wildcard, so this won't work in CS2 or CS3.
    The best I can think of at the moment is: Underline the whole text. Set Find What to find spaces (^w), leave Change To blank but in the Change Format box, turn off underline on Basic Character Formatting. Close the dialog box. Then, placing the cursor at the beginning, press shift-F3 (the standard shortcut for "Replace with Change To text and find next") for each space in the sentence. You can zip through the section fairly quickly.
    This is really a job for scripting -- the script should change all characters in the selection to underline, then change all white space characters in the selection back to non-underline. Scripts can be assigned a keyboard shortcut for ultimate convenience.
    Rodney

  • How do I print just the text in a power point opened in preview

    How do I print just the text in a power point opened in preview

    In the front panel, right click on the listbox object and select create>attribute node.
    In the diagram click on the attribute node and select "Item Names".
    Connect the desired array of string to the attribute node.
    BigBen

  • Obtaining the " #text " string in a nodeList !!!!

    hello guys,
    i just have a bizarre problem, i'm getting the #text string in a nodeList whereas this string does not exist in any of the .xml files.
    here is my function:
    private Vector<String> getClassAttributs(Document doc)
          String nN="";
          NodeList listeClassAttributes = doc.getElementsByTagName("attribut");
          for(int i=0;i<listeClassAttributes.getLength();i++)
             nN=listeClassAttributes.item(i).getParentNode().getNodeName();
          //  System.out.println(nN);
             if (nN.equals("classe"))
                 NodeList children=listeClassAttributes.item(i).getChildNodes();
                 for(int j=0;j<children.getLength();j++){
                    System.out.println( children.item(j).getNodeName());//here it displays me among other string(that actually exist) the #text (which does not exist)
                   //if(children.item(j).getNodeName().equals("valeur"))
                     // System.out.println(children.item(j).getNodeValue());
                  //classAttributes.add(children.item(i).getNodeValue());
          return classAttributes;
        }thank you

    In your for loop check for node type before printing the value. Something like this...
    if (children.item(j).getNodeType()== Node.ELEMENT_NODE)

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I've just bought an new laptop and downloaded itunes. I plugged in my iphone and upgraded to the newest itunes/ synched etc. Now I have no music or apps on my phone. The contacts photos and texts all seem fine. Just the itues stuff that's missing.

    I have just bought a new computer and downloaded itunes. I plugged in my iphone and upgraded to the newest itunes/ synched etc. Now have no music or apps on the phone. Contacts, texts, photos all fine. Just all itunes content that is missiing. It isn't showing in my itunes account on my computer or on my phone. Any idea how to get it back? (No point synching with itunes on my computer as it isn't there either!)

    I suggest copying your entire iTunes library to your new computer, also you might want to copy the photos you want to save. Then sync your device to the new iTunes and copy over your music, documents and photos that you want.
    If you are no longer going to use the old computer you should open up iTunes on the old computer and use the menu to deauthorize it. Be sure to use the same iTunes menu on your new computer to Authorize the new one.

  • My iPhone 3Gs randomly shutting off at any given moment. I could be in the middle of a text, a call, or doing some games and it'll just shut off.  Now here's the unique part. When I go to turn it back on, the apple loading screen pops up but it takes some

    My iPhone 3Gs randomly shutting off at any given moment. I could be in the middle of a text, a call, or doing some games and it'll just shut off.
    Now here's the unique part. When I go to turn it back on, the apple loading screen pops up but it takes somewhere from 3-5 minutes for it to boot up. Then the lock screen with the time and whatnot shows up. From this point on, my iPhone has a chance to shut itself back down and I have to repeat the process over and over again. Most of the time the lock screen flashes and then goes straight to black (shut down) but sometimes I can make it a few menus before it shuts itself down.
    The only way to keep the iPhone on is to plug it into a charger of any sort. I'm fairly certain it isn't a battery charge issue because this happens at any % of power and sometimes my iPhone can use up all of its charge and not have this happen while other times I can be at 90-100% and it could randomly shut itself down. What can I do in this situation if some has some solution to this problem please let me know on [email protected] Thanks!

    Not sure if this Term is Relevant towards an iPhone but, my iPhone won't Post unless if it's plugged into a Charger.

  • Multi-language support for user-specified text strings used in the forms

    multi-language support for user-specified text strings used in the forms
    Instead of creating multiple forms, 1 in each different language, for the same service, is there any workaround?

    Hoan - is your question what are the considerations when creating multiligual catalogs? If so, I can tell you that at other clients I have seen them use a single catalog for one or two languages. For the two langugages, such as Spanish/English, you can create a single catalog with both of them. Once you get to more than two languages, the catalog would get unweildy and is therefore not suggested.

  • [Forum FAQ] How to find and replace text strings in the shapes in Excel using Windows PowerShell

    Windows PowerShell is a powerful command tool and we can use it for management and operations. In this article we introduce the detailed steps to use Windows PowerShell to find and replace test string in the
    shapes in Excel Object.
    Since the Excel.Application
    is available for representing the entire Microsoft Excel application, we can invoke the relevant Properties and Methods to help us to
    interact with Excel document.
    The figure below is an excel file:
    Figure 1.
    You can use the PowerShell script below to list the text in the shapes and replace the text string to “text”:
    $text = “text1”,”text2”,”text3”,”text3”
    $Excel 
    = New-Object -ComObject Excel.Application
    $Excel.visible = $true
    $Workbook 
    = $Excel.workbooks.open("d:\shape.xlsx")      
    #Open the excel file
    $Worksheet 
    = $Workbook.Worksheets.Item("shapes")       
    #Open the worksheet named "shapes"
    $shape = $Worksheet.Shapes      
    # Get all the shapes
    $i=0      
    # This number is used to replace the text in sequence as the variable “$text”
    Foreach ($sh in $shape){
    $sh.TextFrame.Characters().text  
    # Get the textbox in the shape
    $sh.TextFrame.Characters().text = 
    $text[$i++]       
    #Change the value of the textbox in the shape one by one
    $WorkBook.Save()              
    #Save workbook in excel
    $WorkBook.Close()             
    #Close workbook in excel
    [void]$excel.quit()           
    #Quit Excel
    Before invoking the methods and properties, we can use the cmdlet “Get-Member” to list the available methods.
    Besides, we can also find the documents about these methods and properties in MSDN:
    Workbook.Worksheets Property (Excel):
    http://msdn.microsoft.com/en-us/library/office/ff835542(v=office.15).aspx
    Worksheet.Shapes Property:
    http://msdn.microsoft.com/en-us/library/office/ff821817(v=office.15).aspx
    Shape.TextFrame Property:
    http://msdn.microsoft.com/en-us/library/office/ff839162(v=office.15).aspx
    TextFrame.Characters Method (Excel):
    http://msdn.microsoft.com/en-us/library/office/ff195027(v=office.15).aspx
    Characters.Text Property (Excel):
    http://msdn.microsoft.com/en-us/library/office/ff838596(v=office.15).aspx
    After running the script above, we can see the changes in the figure below:
    Figure 2.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thank you for the information, but does this thread really need to be stuck to the top of the forum?
    If there must be a sticky, I'd rather see a link to a page on the wiki that has links to all of these ForumFAQ posts.
    EDIT: I see this is no longer stuck to the top of the forum, thank you.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

Maybe you are looking for