Change medium (e.g. A4,...) via scripting

Hi all,
is it possible to change the medium (e.g. A4, A4color,...) of a form-output via scripting (initialisation) in the LifeCycle Designer?
Thanks a lot.
Regards Marc

Hi Neelima,
I tried implementing the same in the Save Badi. Still no success.
I guess this is standard bug, I deactivated all my badi implementation and test the standard feature.
I went to the Output tab, by default it was Email and I changed it to XML in the screen.
when i save the PO document . it saved.
But , we opened it again in display or edit mode.  It is again defaulted to EMAIL .
Just an information :
Note 1072367 - No output medium identified error even if medium selected.
This note is released with manual correction for SRM_SERVER Ver 6 and say
this is has been included in the SRM_SERVER 7 version.
This piece of correction is not available in our system.
I guess this  might be a standard bug ? Please suggest me .
Best regards,
Prabhu

Similar Messages

  • How to change the particular item size via script?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file through script. Is it possible kindly advice me.
    Thanks for looking into this...

    I changed the widh and height of the selected items. While converting stroke weight of the selected item also changed. But i need to change the width and height of the selected items without any modification in the stroke weight(scale strokes and effects). Could you please advice me the possiblilities and solution via scripting.
    Thanks for looking into this..

  • Is there a way to change the Layer Color Tag via Script?

    I tried to use the Script Listener to find the Event to change the Layer Color Tag but there were no commands recorded to my desktop. I have scoured the forums and the depths of Goooooo....ooogle and to no avail.
    I checked the API for an Art Layer and found no options to assign a Color Tag.
    I want to change the Color Tag From:
    To Color Tag Purple:
    Could anyone please help point me in the Right Direction?

    Just solved my own question:
    Photoshop was being weird so I had to change the color 2 times for the event to be recognized...idk why but it worked: heres the code:
    desc66.putReference( idnull, ref55 );
        var idT = charIDToTypeID( "T   " );
            var desc67 = new ActionDescriptor();
            var idClr = charIDToTypeID( "Clr " );
            var idClr = charIDToTypeID( "Clr " );
            var idVlt = charIDToTypeID( "Vlt " );
            desc67.putEnumerated( idClr, idClr, idVlt );
        var idLyr = charIDToTypeID( "Lyr " );
        desc66.putObject( idT, idLyr, desc67 );
    executeAction( idsetd, desc66, DialogModes.NO );

  • Getting "ATTENTION: Unsaved Changes..." box via SCRIPT commands?

    Hello,
    When I exit DIAdem without saving all of my changes, a dialog box comes up:
    "ATTENTION: Unsaved changes found in the following DIAdem panels:
    "DIAdem - VIEW  (File.TDV)
    "DIAdem - REPORT (File.TDV)
    "Do you want to save the changes in these DIAdem panels when leaving the program?
    Is it possible to call this in a script?  Or is there a better way to detect unsaved changes in any of the DIAdem panels? 
    Or...I will describe what I am doing and perhaps someone has a different idea to accomplish what I want?  What I have done is set up some scripts so that users can open "DIAdem Project" files (TDM data with associated VIEW and REPORT layouts) and when users are opening a different "Project" I would like to give them the option of saving any changes they have made before loading something new.
    Thank you!
    Julia Moeller

    Ok, I thought I would share what I wrote to get a box that looks exactly like what DIAdem brings up.  One more question...is there any way to find out if my SCRIPT workspace has been changed?  Then it would be perfect! 
    Thank you again, Julia
    Dim ChangeMss, DataFileNameShort
    ChangeMss = "ATTENTION : Unsaved changes found in the following " & _
      "DIAdem panels:" & vbCRLF & vbCRLF
    DataFileNameShort = Split(DataFileName, "\")
    If DataChanged Then ChangeMss = ChangeMss & " - DIAdem NAVIGATOR" & vbTAB & vbTAB &"(" & DataFileNameShort(Ubound(DataFileNameShort))  & ")" & vbCRLF
    If View.LayoutModified Then ChangeMss = ChangeMss & " - DIAdem-VIEW" & vbTAB & vbTAB & "(" & View.FileName & ".TDV)" & vbCRLF
    If CheckReportChanged Then ChangeMss = ChangeMss & " - DIAdem-REPORT" & vbTAB & vbTAB & "(" & PicFile & ".TDR)" & vbCRLF
    ChangeMss = ChangeMss & vbCRLF & vbCRLF & "Do you want to save the changes in these DIAdem panels when leaving the program?"
    Call MsgBoxDisp(ChangeMss, "MB_YesNoCancel", "MsgTypeWarning", 0)
    ' CheckReportChanged()                                            *** New Function ***
    ' Checks changes in REPORT
    Function CheckReportChanged
      Call GraphChangedChk()
      CheckReportChanged = PicIsChanged
    End Function ' CheckReportChanged

  • Fint size got changed while pasting a text via scripting

    After reading about scriptlistner, I have tried using the same for editing text which is already there in my photoshop module
    There is a text at the bottom of the psd file. I want to change that text at the start of photoshop by pasting the already copied text in memory.
    what scriptlistner logged is as under
    // =======================================================
    var id477 = charIDToTypeID( "setd" );
        var desc28 = new ActionDescriptor();
        var id478 = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var id479 = charIDToTypeID( "TxLr" );
            var id480 = charIDToTypeID( "Ordn" );
            var id481 = charIDToTypeID( "Trgt" );
            ref3.putEnumerated( id479, id480, id481 );
        desc28.putReference( id478, ref3 );
        var id482 = charIDToTypeID( "T   " );
            var desc29 = new ActionDescriptor();
            var id483 = charIDToTypeID( "Txt " );
            desc29.putString( id483, "bank ghogha circle.xls" );
            var id484 = stringIDToTypeID( "warp" );
                var desc30 = new ActionDescriptor();
                var id485 = stringIDToTypeID( "warpStyle" );
                var id486 = stringIDToTypeID( "warpStyle" );
                var id487 = stringIDToTypeID( "warpNone" );
                desc30.putEnumerated( id485, id486, id487 );
                var id488 = stringIDToTypeID( "warpValue" );
                desc30.putDouble( id488, 0.000000 );
                var id489 = stringIDToTypeID( "warpPerspective" );
                desc30.putDouble( id489, 0.000000 );
                var id490 = stringIDToTypeID( "warpPerspectiveOther" );
                desc30.putDouble( id490, 0.000000 );
                var id491 = stringIDToTypeID( "warpRotate" );
                var id492 = charIDToTypeID( "Ornt" );
                var id493 = charIDToTypeID( "Hrzn" );
                desc30.putEnumerated( id491, id492, id493 );
            var id494 = stringIDToTypeID( "warp" );
            desc29.putObject( id484, id494, desc30 );
            var id495 = stringIDToTypeID( "textGridding" );
            var id496 = stringIDToTypeID( "textGridding" );
            var id497 = charIDToTypeID( "None" );
            desc29.putEnumerated( id495, id496, id497 );
            var id498 = charIDToTypeID( "Ornt" );
            var id499 = charIDToTypeID( "Ornt" );
            var id500 = charIDToTypeID( "Hrzn" );
            desc29.putEnumerated( id498, id499, id500 );
            var id501 = charIDToTypeID( "AntA" );
            var id502 = charIDToTypeID( "Annt" );
            var id503 = stringIDToTypeID( "antiAliasSharp" );
            desc29.putEnumerated( id501, id502, id503 );
            var id504 = stringIDToTypeID( "textShape" );
                var list9 = new ActionList();
                    var desc31 = new ActionDescriptor();
                    var id505 = charIDToTypeID( "TEXT" );
                    var id506 = charIDToTypeID( "TEXT" );
                    var id507 = charIDToTypeID( "Pnt " );
                    desc31.putEnumerated( id505, id506, id507 );
                    var id508 = charIDToTypeID( "Ornt" );
                    var id509 = charIDToTypeID( "Ornt" );
                    var id510 = charIDToTypeID( "Hrzn" );
                    desc31.putEnumerated( id508, id509, id510 );
                    var id511 = charIDToTypeID( "Trnf" );
                        var desc32 = new ActionDescriptor();
                        var id512 = stringIDToTypeID( "xx" );
                        desc32.putDouble( id512, 1.000000 );
                        var id513 = stringIDToTypeID( "xy" );
                        desc32.putDouble( id513, 0.000000 );
                        var id514 = stringIDToTypeID( "yx" );
                        desc32.putDouble( id514, 0.000000 );
                        var id515 = stringIDToTypeID( "yy" );
                        desc32.putDouble( id515, 1.000000 );
                        var id516 = stringIDToTypeID( "tx" );
                        desc32.putDouble( id516, 0.000000 );
                        var id517 = stringIDToTypeID( "ty" );
                        desc32.putDouble( id517, 0.000000 );
                    var id518 = charIDToTypeID( "Trnf" );
                    desc31.putObject( id511, id518, desc32 );
                    var id519 = stringIDToTypeID( "rowCount" );
                    desc31.putInteger( id519, 1 );
                    var id520 = stringIDToTypeID( "columnCount" );
                    desc31.putInteger( id520, 1 );
                    var id521 = stringIDToTypeID( "rowMajorOrder" );
                    desc31.putBoolean( id521, true );
                    var id522 = stringIDToTypeID( "rowGutter" );
                    var id523 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id522, id523, 0.000000 );
                    var id524 = stringIDToTypeID( "columnGutter" );
                    var id525 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id524, id525, 0.000000 );
                    var id526 = charIDToTypeID( "Spcn" );
                    var id527 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id526, id527, 0.000000 );
                    var id528 = stringIDToTypeID( "frameBaselineAlignment" );
                    var id529 = stringIDToTypeID( "frameBaselineAlignment" );
                    var id530 = stringIDToTypeID( "alignByAscent" );
                    desc31.putEnumerated( id528, id529, id530 );
                    var id531 = stringIDToTypeID( "firstBaselineMinimum" );
                    var id532 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id531, id532, 0.000000 );
                    var id533 = stringIDToTypeID( "base" );
                        var desc33 = new ActionDescriptor();
                        var id534 = charIDToTypeID( "Hrzn" );
                        desc33.putDouble( id534, 0.000000 );
                        var id535 = charIDToTypeID( "Vrtc" );
                        desc33.putDouble( id535, 0.000000 );
                    var id536 = charIDToTypeID( "Pnt " );
                    desc31.putObject( id533, id536, desc33 );
                var id537 = stringIDToTypeID( "textShape" );
                list9.putObject( id537, desc31 );
            desc29.putList( id504, list9 );
            var id538 = charIDToTypeID( "Txtt" );
                var list10 = new ActionList();
                    var desc34 = new ActionDescriptor();
                    var id539 = charIDToTypeID( "From" );
                    desc34.putInteger( id539, 0 );
                    var id540 = charIDToTypeID( "T   " );
                    desc34.putInteger( id540, 23 );
                    var id541 = charIDToTypeID( "TxtS" );
                        var desc35 = new ActionDescriptor();
                        var id542 = stringIDToTypeID( "fontPostScriptName" );
                        desc35.putString( id542, "CopperplateGothic-Light" );
                        var id543 = charIDToTypeID( "FntN" );
                        desc35.putString( id543, "Copperplate Gothic Light" );
                        var id544 = charIDToTypeID( "FntS" );
                        desc35.putString( id544, "Regular" );
                        var id545 = charIDToTypeID( "Scrp" );
                        desc35.putInteger( id545, 0 );
                        var id546 = charIDToTypeID( "FntT" );
                        desc35.putInteger( id546, 1 );
                        var id547 = charIDToTypeID( "Sz  " );
                        var id548 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id547, id548, 7.906502 );
                        var id549 = charIDToTypeID( "HrzS" );
                        desc35.putDouble( id549, 100.000000 );
                        var id550 = charIDToTypeID( "VrtS" );
                        desc35.putDouble( id550, 100.000000 );
                        var id551 = stringIDToTypeID( "syntheticBold" );
                        desc35.putBoolean( id551, false );
                        var id552 = stringIDToTypeID( "syntheticItalic" );
                        desc35.putBoolean( id552, false );
                        var id553 = stringIDToTypeID( "autoLeading" );
                        desc35.putBoolean( id553, true );
                        var id554 = charIDToTypeID( "Trck" );
                        desc35.putInteger( id554, 0 );
                        var id555 = charIDToTypeID( "Bsln" );
                        var id556 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id555, id556, 0.000000 );
                        var id557 = stringIDToTypeID( "characterRotation" );
                        desc35.putDouble( id557, 0.000000 );
                        var id558 = charIDToTypeID( "AtKr" );
                        var id559 = charIDToTypeID( "AtKr" );
                        var id560 = stringIDToTypeID( "metricsKern" );
                        desc35.putEnumerated( id558, id559, id560 );
                        var id561 = stringIDToTypeID( "fontCaps" );
                        var id562 = stringIDToTypeID( "fontCaps" );
                        var id563 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id561, id562, id563 );
                        var id564 = stringIDToTypeID( "baseline" );
                        var id565 = stringIDToTypeID( "baseline" );
                        var id566 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id564, id565, id566 );
                        var id567 = stringIDToTypeID( "otbaseline" );
                        var id568 = stringIDToTypeID( "otbaseline" );
                        var id569 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id567, id568, id569 );
                        var id570 = stringIDToTypeID( "strikethrough" );
                        var id571 = stringIDToTypeID( "strikethrough" );
                        var id572 = stringIDToTypeID( "strikethroughOff" );
                        desc35.putEnumerated( id570, id571, id572 );
                        var id573 = charIDToTypeID( "Undl" );
                        var id574 = charIDToTypeID( "Undl" );
                        var id575 = stringIDToTypeID( "underlineOff" );
                        desc35.putEnumerated( id573, id574, id575 );
                        var id576 = stringIDToTypeID( "underlineOffset" );
                        var id577 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id576, id577, 0.000000 );
                        var id578 = stringIDToTypeID( "ligature" );
                        desc35.putBoolean( id578, true );
                        var id579 = stringIDToTypeID( "altligature" );
                        desc35.putBoolean( id579, false );
                        var id580 = stringIDToTypeID( "contextualLigatures" );
                        desc35.putBoolean( id580, false );
                        var id581 = stringIDToTypeID( "alternateLigatures" );
                        desc35.putBoolean( id581, false );
                        var id582 = stringIDToTypeID( "oldStyle" );
                        desc35.putBoolean( id582, false );
                        var id583 = stringIDToTypeID( "fractions" );
                        desc35.putBoolean( id583, false );
                        var id584 = stringIDToTypeID( "ordinals" );
                        desc35.putBoolean( id584, false );
                        var id585 = stringIDToTypeID( "swash" );
                        desc35.putBoolean( id585, false );
                        var id586 = stringIDToTypeID( "titling" );
                        desc35.putBoolean( id586, false );
                        var id587 = stringIDToTypeID( "connectionForms" );
                        desc35.putBoolean( id587, false );
                        var id588 = stringIDToTypeID( "stylisticAlternates" );
                        desc35.putBoolean( id588, false );
                        var id589 = stringIDToTypeID( "ornaments" );
                        desc35.putBoolean( id589, false );
                        var id590 = stringIDToTypeID( "figureStyle" );
                        var id591 = stringIDToTypeID( "figureStyle" );
                        var id592 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id590, id591, id592 );
                        var id593 = stringIDToTypeID( "proportionalMetrics" );
                        desc35.putBoolean( id593, false );
                        var id594 = stringIDToTypeID( "kana" );
                        desc35.putBoolean( id594, false );
                        var id595 = stringIDToTypeID( "italics" );
                        desc35.putBoolean( id595, false );
                        var id596 = stringIDToTypeID( "ruby" );
                        desc35.putBoolean( id596, false );
                        var id597 = stringIDToTypeID( "baselineDirection" );
                        var id598 = stringIDToTypeID( "baselineDirection" );
                        var id599 = stringIDToTypeID( "withStream" );
                        desc35.putEnumerated( id597, id598, id599 );
                        var id600 = stringIDToTypeID( "textLanguage" );
                        var id601 = stringIDToTypeID( "textLanguage" );
                        var id602 = stringIDToTypeID( "ukenglishLanguage" );
                        desc35.putEnumerated( id600, id601, id602 );
                        var id603 = stringIDToTypeID( "japaneseAlternate" );
                        var id604 = stringIDToTypeID( "japaneseAlternate" );
                        var id605 = stringIDToTypeID( "defaultForm" );
                        desc35.putEnumerated( id603, id604, id605 );
                        var id606 = stringIDToTypeID( "mojiZume" );
                        desc35.putDouble( id606, 0.000000 );
                        var id607 = stringIDToTypeID( "gridAlignment" );
                        var id608 = stringIDToTypeID( "gridAlignment" );
                        var id609 = stringIDToTypeID( "roman" );
                        desc35.putEnumerated( id607, id608, id609 );
                        var id610 = stringIDToTypeID( "enableWariChu" );
                        desc35.putBoolean( id610, false );
                        var id611 = stringIDToTypeID( "wariChuCount" );
                        desc35.putInteger( id611, 2 );
                        var id612 = stringIDToTypeID( "wariChuLineGap" );
                        desc35.putInteger( id612, 0 );
                        var id613 = stringIDToTypeID( "wariChuScale" );
                        desc35.putDouble( id613, 0.500000 );
                        var id614 = stringIDToTypeID( "wariChuWidow" );
                        desc35.putInteger( id614, 2 );
                        var id615 = stringIDToTypeID( "wariChuOrphan" );
                        desc35.putInteger( id615, 2 );
                        var id616 = stringIDToTypeID( "wariChuJustification" );
                        var id617 = stringIDToTypeID( "wariChuJustification" );
                        var id618 = stringIDToTypeID( "wariChuAutoJustify" );
                        desc35.putEnumerated( id616, id617, id618 );
                        var id619 = stringIDToTypeID( "tcyUpDown" );
                        desc35.putInteger( id619, 0 );
                        var id620 = stringIDToTypeID( "tcyLeftRight" );
                        desc35.putInteger( id620, 0 );
                        var id621 = stringIDToTypeID( "leftAki" );
                        desc35.putDouble( id621, -1.000000 );
                        var id622 = stringIDToTypeID( "rightAki" );
                        desc35.putDouble( id622, -1.000000 );
                        var id623 = stringIDToTypeID( "jiDori" );
                        desc35.putInteger( id623, 0 );
                        var id624 = stringIDToTypeID( "noBreak" );
                        desc35.putBoolean( id624, false );
                        var id625 = charIDToTypeID( "Clr " );
                            var desc36 = new ActionDescriptor();
                            var id626 = charIDToTypeID( "Rd  " );
                            desc36.putDouble( id626, 0.000000 );
                            var id627 = charIDToTypeID( "Grn " );
                            desc36.putDouble( id627, 0.000000 );
                            var id628 = charIDToTypeID( "Bl  " );
                            desc36.putDouble( id628, 0.000000 );
                        var id629 = charIDToTypeID( "RGBC" );
                        desc35.putObject( id625, id629, desc36 );
                        var id630 = stringIDToTypeID( "strokeColor" );
                            var desc37 = new ActionDescriptor();
                            var id631 = charIDToTypeID( "Rd  " );
                            desc37.putDouble( id631, 0.000000 );
                            var id632 = charIDToTypeID( "Grn " );
                            desc37.putDouble( id632, 0.000000 );
                            var id633 = charIDToTypeID( "Bl  " );
                            desc37.putDouble( id633, 0.000000 );
                        var id634 = charIDToTypeID( "RGBC" );
                        desc35.putObject( id630, id634, desc37 );
                        var id635 = charIDToTypeID( "Fl  " );
                        desc35.putBoolean( id635, true );
                        var id636 = charIDToTypeID( "Strk" );
                        desc35.putBoolean( id636, false );
                        var id637 = stringIDToTypeID( "fillFirst" );
                        desc35.putBoolean( id637, false );
                        var id638 = stringIDToTypeID( "fillOverPrint" );
                        desc35.putBoolean( id638, false );
                        var id639 = stringIDToTypeID( "strokeOverPrint" );
                        desc35.putBoolean( id639, false );
                        var id640 = stringIDToTypeID( "lineCap" );
                        var id641 = stringIDToTypeID( "lineCap" );
                        var id642 = stringIDToTypeID( "buttCap" );
                        desc35.putEnumerated( id640, id641, id642 );
                        var id643 = stringIDToTypeID( "lineJoin" );
                        var id644 = stringIDToTypeID( "lineJoin" );
                        var id645 = stringIDToTypeID( "miterJoin" );
                        desc35.putEnumerated( id643, id644, id645 );
                        var id646 = stringIDToTypeID( "lineWidth" );
                        var id647 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id646, id647, 0.094878 );
                        var id648 = stringIDToTypeID( "miterLimit" );
                        var id649 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id648, id649, 1.152000 );
                        var id650 = stringIDToTypeID( "lineDashoffset" );
                        desc35.putDouble( id650, 0.000000 );
                    var id651 = charIDToTypeID( "TxtS" );
                    desc34.putObject( id541, id651, desc35 );
                var id652 = charIDToTypeID( "Txtt" );
                list10.putObject( id652, desc34 );
            desc29.putList( id538, list10 );
            var id653 = stringIDToTypeID( "paragraphStyleRange" );
                var list11 = new ActionList();
                    var desc38 = new ActionDescriptor();
                    var id654 = charIDToTypeID( "From" );
                    desc38.putInteger( id654, 0 );
                    var id655 = charIDToTypeID( "T   " );
                    desc38.putInteger( id655, 23 );
                    var id656 = stringIDToTypeID( "paragraphStyle" );
                        var desc39 = new ActionDescriptor();
                        var id657 = charIDToTypeID( "Algn" );
                        var id658 = charIDToTypeID( "Alg " );
                        var id659 = charIDToTypeID( "Left" );
                        desc39.putEnumerated( id657, id658, id659 );
                        var id660 = stringIDToTypeID( "firstLineIndent" );
                        var id661 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id660, id661, 0.000000 );
                        var id662 = stringIDToTypeID( "startIndent" );
                        var id663 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id662, id663, 0.000000 );
                        var id664 = stringIDToTypeID( "endIndent" );
                        var id665 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id664, id665, 0.000000 );
                        var id666 = stringIDToTypeID( "spaceBefore" );
                        var id667 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id666, id667, 0.000000 );
                        var id668 = stringIDToTypeID( "spaceAfter" );
                        var id669 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id668, id669, 0.000000 );
                        var id670 = stringIDToTypeID( "dropCapMultiplier" );
                        desc39.putInteger( id670, 1 );
                        var id671 = stringIDToTypeID( "autoLeadingPercentage" );
                        desc39.putDouble( id671, 1.200000 );
                        var id672 = stringIDToTypeID( "leadingType" );
                        var id673 = stringIDToTypeID( "leadingType" );
                        var id674 = stringIDToTypeID( "leadingBelow" );
                        desc39.putEnumerated( id672, id673, id674 );
                        var id675 = stringIDToTypeID( "hyphenate" );
                        desc39.putBoolean( id675, true );
                        var id676 = stringIDToTypeID( "hyphenateWordSize" );
                        desc39.putInteger( id676, 8 );
                        var id677 = stringIDToTypeID( "hyphenatePreLength" );
                        desc39.putInteger( id677, 3 );
                        var id678 = stringIDToTypeID( "hyphenatePostLength" );
                        desc39.putInteger( id678, 3 );
                        var id679 = stringIDToTypeID( "hyphenateLimit" );
                        desc39.putInteger( id679, 2 );
                        var id680 = stringIDToTypeID( "hyphenationZone" );
                        desc39.putDouble( id680, 36.000000 );
                        var id681 = stringIDToTypeID( "hyphenateCapitalized" );
                        desc39.putBoolean( id681, true );
                        var id682 = stringIDToTypeID( "hyphenationPreference" );
                        desc39.putDouble( id682, 0.500000 );
                        var id683 = stringIDToTypeID( "justificationWordMinimum" );
                        desc39.putDouble( id683, 0.800000 );
                        var id684 = stringIDToTypeID( "justificationWordDesired" );
                        desc39.putDouble( id684, 1.000000 );
                        var id685 = stringIDToTypeID( "justificationWordMaximum" );
                        desc39.putDouble( id685, 1.330000 );
                        var id686 = stringIDToTypeID( "justificationLetterMinimum" );
                        desc39.putDouble( id686, 0.000000 );
                        var id687 = stringIDToTypeID( "justificationLetterDesired" );
                        desc39.putDouble( id687, 0.000000 );
                        var id688 = stringIDToTypeID( "justificationLetterMaximum" );
                        desc39.putDouble( id688, 0.000000 );
                        var id689 = stringIDToTypeID( "justificationGlyphMinimum" );
                        desc39.putDouble( id689, 1.000000 );
                        var id690 = stringIDToTypeID( "justificationGlyphDesired" );
                        desc39.putDouble( id690, 1.000000 );
                        var id691 = stringIDToTypeID( "justificationGlyphMaximum" );
                        desc39.putDouble( id691, 1.000000 );
                        var id692 = stringIDToTypeID( "singleWordJustification" );
                        var id693 = charIDToTypeID( "Alg " );
                        var id694 = charIDToTypeID( "JstA" );
                        desc39.putEnumerated( id692, id693, id694 );
                        var id695 = stringIDToTypeID( "hangingRoman" );
                        desc39.putBoolean( id695, false );
                        var id696 = stringIDToTypeID( "autoTCY" );
                        desc39.putInteger( id696, 1 );
                        var id697 = stringIDToTypeID( "keepTogether" );
                        desc39.putBoolean( id697, true );
                        var id698 = stringIDToTypeID( "burasagari" );
                        var id699 = stringIDToTypeID( "burasagari" );
                        var id700 = stringIDToTypeID( "burasagariNone" );
                        desc39.putEnumerated( id698, id699, id700 );
                        var id701 = stringIDToTypeID( "preferredKinsokuOrder" );
                        var id702 = stringIDToTypeID( "preferredKinsokuOrder" );
                        var id703 = stringIDToTypeID( "pushIn" );
                        desc39.putEnumerated( id701, id702, id703 );
                        var id704 = stringIDToTypeID( "kurikaeshiMojiShori" );
                        desc39.putBoolean( id704, true );
                        var id705 = stringIDToTypeID( "mojiKumiName" );
                        desc39.putString( id705, "None" );
                        var id706 = stringIDToTypeID( "textEveryLineComposer" );
                        desc39.putBoolean( id706, false );
                        var id707 = stringIDToTypeID( "defaultTabWidth" );
                        desc39.putDouble( id707, 36.000000 );
                        var id708 = stringIDToTypeID( "defaultStyle" );
                            var desc40 = new ActionDescriptor();
                        var id709 = charIDToTypeID( "TxtS" );
                        desc39.putObject( id708, id709, desc40 );
                    var id710 = stringIDToTypeID( "paragraphStyle" );
                    desc38.putObject( id656, id710, desc39 );
                var id711 = stringIDToTypeID( "paragraphStyleRange" );
                list11.putObject( id711, desc38 );
            desc29.putList( id653, list11 );
            var id712 = stringIDToTypeID( "kerningRange" );
                var list12 = new ActionList();
            desc29.putList( id712, list12 );
        var id713 = charIDToTypeID( "TxLr" );
        desc28.putObject( id482, id713, desc29 );
    executeAction( id477, desc28, DialogModes.NO );
    // =======================================================
    var id477 = charIDToTypeID( "setd" );
        var desc28 = new ActionDescriptor();
        var id478 = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var id479 = charIDToTypeID( "TxLr" );
            var id480 = charIDToTypeID( "Ordn" );
            var id481 = charIDToTypeID( "Trgt" );
            ref3.putEnumerated( id479, id480, id481 );
        desc28.putReference( id478, ref3 );
        var id482 = charIDToTypeID( "T   " );
            var desc29 = new ActionDescriptor();
            var id483 = charIDToTypeID( "Txt " );
            desc29.putString( id483, "bank ghogha circle.xls" );
            var id484 = stringIDToTypeID( "warp" );
                var desc30 = new ActionDescriptor();
                var id485 = stringIDToTypeID( "warpStyle" );
                var id486 = stringIDToTypeID( "warpStyle" );
                var id487 = stringIDToTypeID( "warpNone" );
                desc30.putEnumerated( id485, id486, id487 );
                var id488 = stringIDToTypeID( "warpValue" );
                desc30.putDouble( id488, 0.000000 );
                var id489 = stringIDToTypeID( "warpPerspective" );
                desc30.putDouble( id489, 0.000000 );
                var id490 = stringIDToTypeID( "warpPerspectiveOther" );
                desc30.putDouble( id490, 0.000000 );
                var id491 = stringIDToTypeID( "warpRotate" );
                var id492 = charIDToTypeID( "Ornt" );
                var id493 = charIDToTypeID( "Hrzn" );
                desc30.putEnumerated( id491, id492, id493 );
            var id494 = stringIDToTypeID( "warp" );
            desc29.putObject( id484, id494, desc30 );
            var id495 = stringIDToTypeID( "textGridding" );
            var id496 = stringIDToTypeID( "textGridding" );
            var id497 = charIDToTypeID( "None" );
            desc29.putEnumerated( id495, id496, id497 );
            var id498 = charIDToTypeID( "Ornt" );
            var id499 = charIDToTypeID( "Ornt" );
            var id500 = charIDToTypeID( "Hrzn" );
            desc29.putEnumerated( id498, id499, id500 );
            var id501 = charIDToTypeID( "AntA" );
            var id502 = charIDToTypeID( "Annt" );
            var id503 = stringIDToTypeID( "antiAliasSharp" );
            desc29.putEnumerated( id501, id502, id503 );
            var id504 = stringIDToTypeID( "textShape" );
                var list9 = new ActionList();
                    var desc31 = new ActionDescriptor();
                    var id505 = charIDToTypeID( "TEXT" );
                    var id506 = charIDToTypeID( "TEXT" );
                    var id507 = charIDToTypeID( "Pnt " );
                    desc31.putEnumerated( id505, id506, id507 );
                    var id508 = charIDToTypeID( "Ornt" );
                    var id509 = charIDToTypeID( "Ornt" );
                    var id510 = charIDToTypeID( "Hrzn" );
                    desc31.putEnumerated( id508, id509, id510 );
                    var id511 = charIDToTypeID( "Trnf" );
                        var desc32 = new ActionDescriptor();
                        var id512 = stringIDToTypeID( "xx" );
                        desc32.putDouble( id512, 1.000000 );
                        var id513 = stringIDToTypeID( "xy" );
                        desc32.putDouble( id513, 0.000000 );
                        var id514 = stringIDToTypeID( "yx" );
                        desc32.putDouble( id514, 0.000000 );
                        var id515 = stringIDToTypeID( "yy" );
                        desc32.putDouble( id515, 1.000000 );
                        var id516 = stringIDToTypeID( "tx" );
                        desc32.putDouble( id516, 0.000000 );
                        var id517 = stringIDToTypeID( "ty" );
                        desc32.putDouble( id517, 0.000000 );
                    var id518 = charIDToTypeID( "Trnf" );
                    desc31.putObject( id511, id518, desc32 );
                    var id519 = stringIDToTypeID( "rowCount" );
                    desc31.putInteger( id519, 1 );
                    var id520 = stringIDToTypeID( "columnCount" );
                    desc31.putInteger( id520, 1 );
                    var id521 = stringIDToTypeID( "rowMajorOrder" );
                    desc31.putBoolean( id521, true );
                    var id522 = stringIDToTypeID( "rowGutter" );
                    var id523 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id522, id523, 0.000000 );
                    var id524 = stringIDToTypeID( "columnGutter" );
                    var id525 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id524, id525, 0.000000 );
                    var id526 = charIDToTypeID( "Spcn" );
                    var id527 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id526, id527, 0.000000 );
                    var id528 = stringIDToTypeID( "frameBaselineAlignment" );
                    var id529 = stringIDToTypeID( "frameBaselineAlignment" );
                    var id530 = stringIDToTypeID( "alignByAscent" );
                    desc31.putEnumerated( id528, id529, id530 );
                    var id531 = stringIDToTypeID( "firstBaselineMinimum" );
                    var id532 = charIDToTypeID( "#Pnt" );
                    desc31.putUnitDouble( id531, id532, 0.000000 );
                    var id533 = stringIDToTypeID( "base" );
                        var desc33 = new ActionDescriptor();
                        var id534 = charIDToTypeID( "Hrzn" );
                        desc33.putDouble( id534, 0.000000 );
                        var id535 = charIDToTypeID( "Vrtc" );
                        desc33.putDouble( id535, 0.000000 );
                    var id536 = charIDToTypeID( "Pnt " );
                    desc31.putObject( id533, id536, desc33 );
                var id537 = stringIDToTypeID( "textShape" );
                list9.putObject( id537, desc31 );
            desc29.putList( id504, list9 );
            var id538 = charIDToTypeID( "Txtt" );
                var list10 = new ActionList();
                    var desc34 = new ActionDescriptor();
                    var id539 = charIDToTypeID( "From" );
                    desc34.putInteger( id539, 0 );
                    var id540 = charIDToTypeID( "T   " );
                    desc34.putInteger( id540, 23 );
                    var id541 = charIDToTypeID( "TxtS" );
                        var desc35 = new ActionDescriptor();
                        var id542 = stringIDToTypeID( "fontPostScriptName" );
                        desc35.putString( id542, "CopperplateGothic-Light" );
                        var id543 = charIDToTypeID( "FntN" );
                        desc35.putString( id543, "Copperplate Gothic Light" );
                        var id544 = charIDToTypeID( "FntS" );
                        desc35.putString( id544, "Regular" );
                        var id545 = charIDToTypeID( "Scrp" );
                        desc35.putInteger( id545, 0 );
                        var id546 = charIDToTypeID( "FntT" );
                        desc35.putInteger( id546, 1 );
                        var id547 = charIDToTypeID( "Sz  " );
                        var id548 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id547, id548, 7.906502 );
                        var id549 = charIDToTypeID( "HrzS" );
                        desc35.putDouble( id549, 100.000000 );
                        var id550 = charIDToTypeID( "VrtS" );
                        desc35.putDouble( id550, 100.000000 );
                        var id551 = stringIDToTypeID( "syntheticBold" );
                        desc35.putBoolean( id551, false );
                        var id552 = stringIDToTypeID( "syntheticItalic" );
                        desc35.putBoolean( id552, false );
                        var id553 = stringIDToTypeID( "autoLeading" );
                        desc35.putBoolean( id553, true );
                        var id554 = charIDToTypeID( "Trck" );
                        desc35.putInteger( id554, 0 );
                        var id555 = charIDToTypeID( "Bsln" );
                        var id556 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id555, id556, 0.000000 );
                        var id557 = stringIDToTypeID( "characterRotation" );
                        desc35.putDouble( id557, 0.000000 );
                        var id558 = charIDToTypeID( "AtKr" );
                        var id559 = charIDToTypeID( "AtKr" );
                        var id560 = stringIDToTypeID( "metricsKern" );
                        desc35.putEnumerated( id558, id559, id560 );
                        var id561 = stringIDToTypeID( "fontCaps" );
                        var id562 = stringIDToTypeID( "fontCaps" );
                        var id563 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id561, id562, id563 );
                        var id564 = stringIDToTypeID( "baseline" );
                        var id565 = stringIDToTypeID( "baseline" );
                        var id566 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id564, id565, id566 );
                        var id567 = stringIDToTypeID( "otbaseline" );
                        var id568 = stringIDToTypeID( "otbaseline" );
                        var id569 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id567, id568, id569 );
                        var id570 = stringIDToTypeID( "strikethrough" );
                        var id571 = stringIDToTypeID( "strikethrough" );
                        var id572 = stringIDToTypeID( "strikethroughOff" );
                        desc35.putEnumerated( id570, id571, id572 );
                        var id573 = charIDToTypeID( "Undl" );
                        var id574 = charIDToTypeID( "Undl" );
                        var id575 = stringIDToTypeID( "underlineOff" );
                        desc35.putEnumerated( id573, id574, id575 );
                        var id576 = stringIDToTypeID( "underlineOffset" );
                        var id577 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id576, id577, 0.000000 );
                        var id578 = stringIDToTypeID( "ligature" );
                        desc35.putBoolean( id578, true );
                        var id579 = stringIDToTypeID( "altligature" );
                        desc35.putBoolean( id579, false );
                        var id580 = stringIDToTypeID( "contextualLigatures" );
                        desc35.putBoolean( id580, false );
                        var id581 = stringIDToTypeID( "alternateLigatures" );
                        desc35.putBoolean( id581, false );
                        var id582 = stringIDToTypeID( "oldStyle" );
                        desc35.putBoolean( id582, false );
                        var id583 = stringIDToTypeID( "fractions" );
                        desc35.putBoolean( id583, false );
                        var id584 = stringIDToTypeID( "ordinals" );
                        desc35.putBoolean( id584, false );
                        var id585 = stringIDToTypeID( "swash" );
                        desc35.putBoolean( id585, false );
                        var id586 = stringIDToTypeID( "titling" );
                        desc35.putBoolean( id586, false );
                        var id587 = stringIDToTypeID( "connectionForms" );
                        desc35.putBoolean( id587, false );
                        var id588 = stringIDToTypeID( "stylisticAlternates" );
                        desc35.putBoolean( id588, false );
                        var id589 = stringIDToTypeID( "ornaments" );
                        desc35.putBoolean( id589, false );
                        var id590 = stringIDToTypeID( "figureStyle" );
                        var id591 = stringIDToTypeID( "figureStyle" );
                        var id592 = charIDToTypeID( "Nrml" );
                        desc35.putEnumerated( id590, id591, id592 );
                        var id593 = stringIDToTypeID( "proportionalMetrics" );
                        desc35.putBoolean( id593, false );
                        var id594 = stringIDToTypeID( "kana" );
                        desc35.putBoolean( id594, false );
                        var id595 = stringIDToTypeID( "italics" );
                        desc35.putBoolean( id595, false );
                        var id596 = stringIDToTypeID( "ruby" );
                        desc35.putBoolean( id596, false );
                        var id597 = stringIDToTypeID( "baselineDirection" );
                        var id598 = stringIDToTypeID( "baselineDirection" );
                        var id599 = stringIDToTypeID( "withStream" );
                        desc35.putEnumerated( id597, id598, id599 );
                        var id600 = stringIDToTypeID( "textLanguage" );
                        var id601 = stringIDToTypeID( "textLanguage" );
                        var id602 = stringIDToTypeID( "ukenglishLanguage" );
                        desc35.putEnumerated( id600, id601, id602 );
                        var id603 = stringIDToTypeID( "japaneseAlternate" );
                        var id604 = stringIDToTypeID( "japaneseAlternate" );
                        var id605 = stringIDToTypeID( "defaultForm" );
                        desc35.putEnumerated( id603, id604, id605 );
                        var id606 = stringIDToTypeID( "mojiZume" );
                        desc35.putDouble( id606, 0.000000 );
                        var id607 = stringIDToTypeID( "gridAlignment" );
                        var id608 = stringIDToTypeID( "gridAlignment" );
                        var id609 = stringIDToTypeID( "roman" );
                        desc35.putEnumerated( id607, id608, id609 );
                        var id610 = stringIDToTypeID( "enableWariChu" );
                        desc35.putBoolean( id610, false );
                        var id611 = stringIDToTypeID( "wariChuCount" );
                        desc35.putInteger( id611, 2 );
                        var id612 = stringIDToTypeID( "wariChuLineGap" );
                        desc35.putInteger( id612, 0 );
                        var id613 = stringIDToTypeID( "wariChuScale" );
                        desc35.putDouble( id613, 0.500000 );
                        var id614 = stringIDToTypeID( "wariChuWidow" );
                        desc35.putInteger( id614, 2 );
                        var id615 = stringIDToTypeID( "wariChuOrphan" );
                        desc35.putInteger( id615, 2 );
                        var id616 = stringIDToTypeID( "wariChuJustification" );
                        var id617 = stringIDToTypeID( "wariChuJustification" );
                        var id618 = stringIDToTypeID( "wariChuAutoJustify" );
                        desc35.putEnumerated( id616, id617, id618 );
                        var id619 = stringIDToTypeID( "tcyUpDown" );
                        desc35.putInteger( id619, 0 );
                        var id620 = stringIDToTypeID( "tcyLeftRight" );
                        desc35.putInteger( id620, 0 );
                        var id621 = stringIDToTypeID( "leftAki" );
                        desc35.putDouble( id621, -1.000000 );
                        var id622 = stringIDToTypeID( "rightAki" );
                        desc35.putDouble( id622, -1.000000 );
                        var id623 = stringIDToTypeID( "jiDori" );
                        desc35.putInteger( id623, 0 );
                        var id624 = stringIDToTypeID( "noBreak" );
                        desc35.putBoolean( id624, false );
                        var id625 = charIDToTypeID( "Clr " );
                            var desc36 = new ActionDescriptor();
                            var id626 = charIDToTypeID( "Rd  " );
                            desc36.putDouble( id626, 0.000000 );
                            var id627 = charIDToTypeID( "Grn " );
                            desc36.putDouble( id627, 0.000000 );
                            var id628 = charIDToTypeID( "Bl  " );
                            desc36.putDouble( id628, 0.000000 );
                        var id629 = charIDToTypeID( "RGBC" );
                        desc35.putObject( id625, id629, desc36 );
                        var id630 = stringIDToTypeID( "strokeColor" );
                            var desc37 = new ActionDescriptor();
                            var id631 = charIDToTypeID( "Rd  " );
                            desc37.putDouble( id631, 0.000000 );
                            var id632 = charIDToTypeID( "Grn " );
                            desc37.putDouble( id632, 0.000000 );
                            var id633 = charIDToTypeID( "Bl  " );
                            desc37.putDouble( id633, 0.000000 );
                        var id634 = charIDToTypeID( "RGBC" );
                        desc35.putObject( id630, id634, desc37 );
                        var id635 = charIDToTypeID( "Fl  " );
                        desc35.putBoolean( id635, true );
                        var id636 = charIDToTypeID( "Strk" );
                        desc35.putBoolean( id636, false );
                        var id637 = stringIDToTypeID( "fillFirst" );
                        desc35.putBoolean( id637, false );
                        var id638 = stringIDToTypeID( "fillOverPrint" );
                        desc35.putBoolean( id638, false );
                        var id639 = stringIDToTypeID( "strokeOverPrint" );
                        desc35.putBoolean( id639, false );
                        var id640 = stringIDToTypeID( "lineCap" );
                        var id641 = stringIDToTypeID( "lineCap" );
                        var id642 = stringIDToTypeID( "buttCap" );
                        desc35.putEnumerated( id640, id641, id642 );
                        var id643 = stringIDToTypeID( "lineJoin" );
                        var id644 = stringIDToTypeID( "lineJoin" );
                        var id645 = stringIDToTypeID( "miterJoin" );
                        desc35.putEnumerated( id643, id644, id645 );
                        var id646 = stringIDToTypeID( "lineWidth" );
                        var id647 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id646, id647, 0.094878 );
                        var id648 = stringIDToTypeID( "miterLimit" );
                        var id649 = charIDToTypeID( "#Pnt" );
                        desc35.putUnitDouble( id648, id649, 1.152000 );
                        var id650 = stringIDToTypeID( "lineDashoffset" );
                        desc35.putDouble( id650, 0.000000 );
                    var id651 = charIDToTypeID( "TxtS" );
                    desc34.putObject( id541, id651, desc35 );
                var id652 = charIDToTypeID( "Txtt" );
                list10.putObject( id652, desc34 );
            desc29.putList( id538, list10 );
            var id653 = stringIDToTypeID( "paragraphStyleRange" );
                var list11 = new ActionList();
                    var desc38 = new ActionDescriptor();
                    var id654 = charIDToTypeID( "From" );
                    desc38.putInteger( id654, 0 );
                    var id655 = charIDToTypeID( "T   " );
                    desc38.putInteger( id655, 23 );
                    var id656 = stringIDToTypeID( "paragraphStyle" );
                        var desc39 = new ActionDescriptor();
                        var id657 = charIDToTypeID( "Algn" );
                        var id658 = charIDToTypeID( "Alg " );
                        var id659 = charIDToTypeID( "Left" );
                        desc39.putEnumerated( id657, id658, id659 );
                        var id660 = stringIDToTypeID( "firstLineIndent" );
                        var id661 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id660, id661, 0.000000 );
                        var id662 = stringIDToTypeID( "startIndent" );
                        var id663 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id662, id663, 0.000000 );
                        var id664 = stringIDToTypeID( "endIndent" );
                        var id665 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id664, id665, 0.000000 );
                        var id666 = stringIDToTypeID( "spaceBefore" );
                        var id667 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id666, id667, 0.000000 );
                        var id668 = stringIDToTypeID( "spaceAfter" );
                        var id669 = charIDToTypeID( "#Pnt" );
                        desc39.putUnitDouble( id668, id669, 0.000000 );
                        var id670 = stringIDToTypeID( "dropCapMultiplier" );
                        desc39.putInteger( id670, 1 );
                        var id671 = stringIDToTypeID( "autoLeadingPercentage" );
                        desc39.putDouble( id671, 1.200000 );
                        var id672 = stringIDToTypeID( "leadingType" );
                        var id673 = stringIDToTypeID( "leadingType" );
                        var id674 = stringIDToTypeID( "leadingBelow" );
                        desc39.putEnumerated( id672, id673, id674 );
                        var id675 = stringIDToTypeID( "hyphenate" );
                        desc39.putBoolean( id675, true );
                        var id676 = stringIDToTypeID( "hyphenateWordSize" );
                        desc39.putInteger( id676, 8 );
                        var id677 = stringIDToTypeID( "hyphenatePreLength" );
                        desc39.putInteger( id677, 3 );
                        var id678 = stringIDToTypeID( "hyphenatePostLength" );
                        desc39.putInteger( id678, 3 );
                        var id679 = stringIDToTypeID( "hyphenateLimit" );
                        desc39.putInteger( id679, 2 );
                        var id680 = stringIDToTypeID( "hyphenationZone" );
                        desc39.putDouble( id680, 36.000000 );
                        var id681 = stringIDToTypeID( "hyphenateCapitalized" );
                        desc39.putBoolean( id681, true );
                        var id682 = stringIDToTypeID( "hyphenationPreference" );
                        desc39.putDouble( id682, 0.500000 );
                        var id683 = stringIDToTypeID( "justificationWordMinimum" );
                        desc39.putDouble( id683, 0.800000 );
                        var id684 = stringIDToTypeID( "justificationWordDesired" );
                        desc39.putDouble( id684, 1.000000 );
                        var id685 = stringIDToTypeID( "justificationWordMaximum" );
                        desc39.putDouble( id685, 1.330000 );
                        var id686 = stringIDToTypeID( "justificationLetterMinimum" );
                       

    I have two text layer in the same pds file. One layer is locked, means don't want to change at anyitme, while the other getting changed verytime i open and save the file
    The copied text is from other file like that of M.S. excel or word

  • How can I change the default search provider from yahoo to google via script?

    I have 350 users who are upset about the default search provider being changed. I need to change it back via script. How do I do this? I have attempted lockPref("browser.search.isUS", false); in my mozilla.cfg file with no success.

    ''philipp [[#answer-665520|said]]''
    <blockquote>
    hi, does this work?
    defaultPref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Google");
    </blockquote>
    Unfortunately, no it does not.

  • Bug: Setting "Don't include footnotes" via scripting doesn't change the find/change dialog

    Hi,
    Small bug, but can be confusing. Whether you write this line:
    app.findChangeTextOptions.includeFootnotes = false;
    or this line:
    app.findChangeTextOptions.includeFootnotes = true;
    ... you won't see any different in the little footnotes button in the
    find/replace dialog, even though the setting does work via scripting.
    More testing is needed to see what can be done to get the UI in sync
    with the setting...
    Ariel

    The dialog isn't updated while it's displayed. But hiding the dialog and displaying it again (twice Ctrl+F) shows that the script did do its thing.
    Peter

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • Set filename of printed PDF via script

    Hi folks!
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    The script within Acrobat is finished and working. I thought, the InDesign script is finished ,too. But I was wrong -.-
    I merged the databasefile with the document and exported it as PDF. But after exporting, we noticed that the script within Acrobat isn't finding the adressheader where the ID is in. The script only noticed the text after that header. The result is, that Acrobat get's always "null" as ID
    If we print the PDF with our PDFprinter, the header could be read by our Acrobat script. I don't know why this is... But now I changed the script to print the files via our PDF printer. Unfortunately I can't set a name for my exported file - do you know if there is a possibility to print PDF's without prompting after each one and with a via script given name?
    Here you can see the old script for InDesign and right after it, the Acrobat sript. Maybe I made some mistake by generating my PDFexport and don't need to use the printer?
    INDESIGN SCRIPT:
      * prompts filebrowser and stores name and path of file in variable
    var sourceDocument = File.openDialog("Bitte Indesign-Dokument auswählen", "*.indd", false);
      * stores only prefix of filename for use as new filename
    var newName = sourceDocument.name.substr(0,  sourceDocument.name.length-5);
      * stores folder where file is stored
    var dbSourceFolder = sourceDocument.parent+"/";
      * prompts for databasefile where generating should begin
    var dbstartfile = File.openDialog("Bitte Start-Datenbankdatei auswählen", "*.txt", false);
      * gets basename of databasefile
    var dbstartfilename = dbstartfile.name.slice(0, dbstartfile.name.search(/_Teil+/));
      * gets number of first databasefile
    var i = dbstartfile.name.slice(dbstartfile.name.search(/_Teil+/)+5).slice(0, -4);
      * generates path name and name of first databasefile to use
    var dbSource = dbstartfile;
       *set PDF preset for generating PDF
    var PDFPreset= app.pdfExportPresets.item("GAG-PDF");
       * stops throwing of alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    // if databasefile isn't existing message will be thrown
    if( dbSource.exists == false ) {
        // restart of alert throwing
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        alert("Datei " + dbSourceFolder+dbprefix+"_Teil"+i+".txt konnte nicht gefunden werden! \n\rBitte starten Sie den Vorgang erneut und geben Sie die richtige Datenbankdatei an." );
    // else process starts
    else {
        while(  dbSource.exists == true ) {
            // opens source indesign document without showing it
            mergeDocument = app.open(File(sourceDocument), false);
            // sets which databasefile should be used for data merge
            mergeDocument.dataMergeProperties.selectDataSource(File(dbSource));
            // starts merging of indesign document and database file
            mergeDocument.dataMergeProperties.mergeRecords();
            // exports generated document as PDF file
            app.activeDocument.exportFile(ExportFormat.pdfType, File(sourceDocument.parent+"/"+newName+"_Teil"+i+".pdf"), false, PDFPreset);
            // closes opened indesign document
            mergeDocument.close(SaveOptions.no);
            i++;
            // change filename of database file to get next file
            dbSource = File(dbSource.parent+"/"+dbstartfilename+"_Teil"+i+".txt");
    // restart of alert throwing
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    alert("PDF-Generierung abgeschlossen!");
    ACROBAT SCRIPT:
    * Path where files should be saved
    * Special Characters like spaces should be escaped with \
    * If you want to modify the folder, use following form:
    * "/Driveletter/Foldername/../LastFolderName/"
    * Make sure not to forget the / before and after the location
    var filepath = "/c/pdf_split_test/";
    * Number of expose pages - feel free to change
    var pageType = app.prompt("Bitte geben Sie die gewünschte Seitenzahl der Exposés an.", "");
    alert(pageType);
    * regular expression for search
    var idNumber = /08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d-\d\d/g;
    * if possible this function extracts the searched number as string
    * @param rematch string which should be searched in document
    * @return null if rematch is not found or string if rematch is found
    function ExtractFromDocument(reMatch) {
      try {
             var Out = new Object();
             for (var i = 0; i < 1; i++)
              numWords = this.getPageNumWords(i);
              var PageText = "";
              for (var j = 0; j < 30;j++) {
                  var word = this.getPageNthWord(i,j,false);
                  PageText += word;
              var strMatches = PageText.match(reMatch);
              if (strMatches == null) continue;
          return strMatches;
      } catch(e)
          app.alert("Processing error: "+e)
    * tries to load given filename (extracted number)
    * @param filename string of file which should be checked
    * @param n number to iterate while checking for files
    * @return true if file exists or false if not
    function checkIfFileExists(filename, n) {
        var existingDoc = false;
        try {
            if( n == 0) {
                var checkDoc = app.openDoc(filepath+filename+"-000.pdf");
            } else {
                var checkDoc = app.openDoc(filepath+filename+"-000_"+n+".pdf");
            checkDoc.closeDoc();
            existingDoc = true;
        } catch (e) {
        if( existingDoc == true ) {
            n = n+1;
            n = checkIfFileExists(filename, n);
        return n;
    var pageAmount = this.numPages;
    for( i=0; i<pageAmount; i+pageType ) {
        var filename = ExtractFromDocument(idNumber);
        fileExistence = checkIfFileExists(filename, 0);
        if(fileExistence != 0) {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000_"+fileExistence+".pdf"}); 
        } else {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000.pdf"});
        this.deletePages({nStart:0, nEnd: pageType-1});

    Hi,
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    Why you don't export 6-page PDFs directly from InDesign?
    robin
    www.adobescripts.co.uk

  • ITunes Music Locations - controlling workstations remotely via script?

    I do storage administration at a company with over 2000 users scattered across the globe. Predictably, at least have use iTunes. We redirect the "My Documents" folder to a network location to force the backup of critical project data. This creates a huge problem for us. iTunes defaults to using the My Music folder in My Documents. This means we are storing and backing up at least 1TB of music.
    I have found that iTunes stores its configuration in xml files in the application data directory in the user profile. I cannot readily figure out where in this file the location is recorded.
    Has anyone confronted this problem, and if so, is there a way to control iTunes installs remotely to set the music folder location, via script, GPO or anything at all?

    The library location is indeed stored in the iTunesPrefs.xml file. Look for the key "iTunes Library Location:1".
    But I have a script that almost does what you want. Here is the perl source:
    http://home.comcast.net/~teridon73/itunesscripts/itunesopenlibrary.txt
    Here is a compiled EXE for it:
    http://home.comcast.net/~teridon73/itunesscripts/itunesopenlibrary.zip
    Anyway, the script basically works by setting the library location to a path that you pass to it. It does so by updating the iTunesPrefs.xml file. This file is very small, so you shouldn't need to worry about it!
    Of course, the script only works if the iTunesPrefs.xml file already exists. It would be nice if you could include a template iTunesPrefs.xml in your new user creation/login script. If the path is the same for every user, well, then you're done I guess.
    If not, you can run the script to set the path to what you really want it to be.
    Existing users are a different story. You can run my script to change the library location, of course. But then you also have to move their existing library file and their music back to that location. Well, you don't have to; you can make the users do it themselves! Also, I don't know if that will work as I haven't tested it.
    I haven't fully explained everything, but I don't have time right now. I hope at least I've given you some ideas. Of course the optimum solution is an Apple-provide GPO you could use. You can try asking apple for it via either a bugreport (if you have an ADC account), or the feedback page for iTunes:
    http://www.apple.com/feedback/itunesapp.html
    Rob

  • How do I enable a Java plug-in via script that was just added to the blocklist?

    I need to enable Java 6u29 that was just added to the blocklist via script because there are several thousand end-nodes involved. Also, I am constrained to Firefox 3.6 due application compatibility issues.

    Probably the only or easiest way to remove or disable the blocklist of older Java versions would be to disable blocklisting by locking the extensions.blocklist.enabled to false via a mozilla.cfg file.<br />
    You are already running a no longer supported Firefox 3.6.x version that won't receive updates.
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    *http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    lockPref("extensions.blocklist.enabled", false);
    *http://kb.mozillazine.org/extensions.blocklist.enabled

  • How to modify default value of Login Shell attribute via script

    Hi all,
    I'm configuring the "UNIX Attributes" tab here in Active Directory Users and Computers. I've noticed that on the Login Shell option it has a default value: /bin/sh. So I had manually changed it to: /bin/bash.  I just change this value one
    bu one manually.  Now, I want to change this value for all users via script. Could you please help me to receive this goal?
    Thank you in advance.

    Use Get-AdUser / Set-AdObject
    Get-AdUser -Filter * | Set-AdObject -Replace @{unixhomedirectory='/bin/sh','bin/bash'} -WhatIf
    ¯\_(ツ)_/¯

  • New Precomposer in AE CC function via script

    As we know new AE CC has got awesome checkbox called "Adjust composition duration to the time span of the selected layers".
    Default setup in scripting guide is:
    [object LayerCollection].precompose(array, string, [bool]);
    But it doesn`t work with a new checkbox.
    So how to operate with a new checkbox via script?
    Thanks for reading.

    I found that precomp function doesn`t work with app.project.activeItem.selectedLayers;
    So here is the final touch that works with selected layers.
    Cheers
    function precompLayer() {
    var myComp = app.project.activeItem;
    if(myComp == null){alert("Please, select your composition"); return false;}
       var selectLayers = app.project.activeItem.selectedLayers; // выбранные
          if(selectLayers.length <1 ){alert("Please, select layers"); return false;}
       myLayers = [];      // precomp function works only with layers indexes, so array should contain layers indexes
            for (var l = 0; l< selectLayers.length; l++){
                myLayers.push(selectLayers[l].index);            // new array with layers indexes
    var precompIndices = myLayers;  //change this to customize
            var precompName = "new_comp";  //change this to customize
            var parentComp = app.project.activeItem;  //change this to customize
            clearOutput();
            writeLn("Creating precompose");
            app.beginUndoGroup("Precompose");
            var Inpoint = 0;
            var Outpoint = 0;
            var precomp = parentComp.layers.precompose(precompIndices, precompName, true);    
            var adjustStartTime = precomp.duration, newCompDuration = 0;
            writeLn(precomp.layers.length+" layers in procompose");
            for(var i=1; i<=precomp.layers.length; i++) {
                var layer = precomp.layer(i);
                (Inpoint > layer.inPoint) ? Inpoint = layer.inPoint : Inpoint;                  // begin of precomp
                (Outpoint < layer.outPoint) ? Outpoint = layer.outPoint : Outpoint;       // end of precomp
                var duration = Outpoint - Inpoint;
                adjustStartTime = adjustStartTime > layer.inPoint ? layer.inPoint : adjustStartTime;
                newCompDuration = newCompDuration < duration? duration : newCompDuration;
                writeLn("New duration = "+newCompDuration);
            for(var i=1; i<=precomp.layers.length; i++) {
                precomp.layer(i).startTime -= adjustStartTime;
            precomp.duration = newCompDuration;
            parentComp.layer(precompName).startTime = adjustStartTime;
            app.endUndoGroup();
    writeLn("Done!");
    precompLayer();

  • Adding Instances via script

    I am really stummped. When adding an instance of an object to a form is done via script is it at all possible to do so even when the form element's min count is set to none at design time?
    I am trying to programmatically add an element when I hit a button like this:
    subform.detail.item.occur.min = "1"; // Is it possible to target nested subforms like this?
    subform.presence = "visible";
    subform, detail and item are subforms stacked on the main form. subform's visibility is hidden while detail and item are visible. only item is a repeating element with it's min count set to none.
    Where exactly should the event trigger? Is it impossible since occur should be placed on the template:ready event. Any help is much appreciated.

    If you set the minimum occurances of a subform to 0, without changing the initial occurances to 1, and their is no data to warrant the subform being there it won't be there. So simply setting it to visible will do nothing because it's not there. You'd have to use the instanceManager to actually create an instance of the subform.. something like:
    subform.detail._item.addInstance(true);
    Chris
    Adobe Enterprise Developer Support

  • How to set layer color property via script?

    I'm looking for a way to set a layer's UI color property via script (see attached). Any help would be greatly appreciated!

    jrapczak2 wrote:
    Uhm.. wow. That's crazy complicated
    It is even more complicated to work with multi-selected layers.
    if( app.documents.length > 0 && versionCheck()  ){
         app.activeDocument.suspendHistory("Set Layer's Color", 'changeLayersColor()');
    function versionCheck()  { return app.version.match(/1[1|2]./) >= 11; };
    function changeLayersColor(){
         function setActiveLayerColor( color ) {
              var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              desc.putReference( charIDToTypeID('null'), ref );
                   var colorEnumDesc = new ActionDescriptor();
                   colorEnumDesc.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), color );
              desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), colorEnumDesc );
              executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
         function getSelectedLayersIdx(){
                   var selectedLayers = new Array;
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                   var desc = executeActionGet(ref);
                   if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
                        desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
                         var c = desc.count
                         var selectedLayers = new Array();
                         for(var i=0;i<c;i++){
                             try{
                                  activeDocument.backgroundLayer;
                                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                             }catch(e){
                                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
                    }else{
                        var ref = new ActionReference();
                        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
                        ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                        try{
                             activeDocument.backgroundLayer;
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
                        }catch(e){
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
                   return selectedLayers;
         function makeActiveByIndex( idx, visible ){
              if( idx.constructor != Array ) idx = [ idx ];
              for( var i = 0; i < idx.length; i++ ){
                   var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putIndex(charIDToTypeID( "Lyr " ), idx[i] );
                   desc.putReference( charIDToTypeID( "null" ), ref );
                   if( i > 0 ) {
                        var idselectionModifier = stringIDToTypeID( "selectionModifier" );
                        var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
                        var idaddToSelection = stringIDToTypeID( "addToSelection" );
                        desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
                   desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
                   executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
         var colors = ['None','Red','Orange','Yellow','Green','Blue','Violet','Grey'];
         var colorIDs = [charIDToTypeID('None'),
                                  charIDToTypeID( "Rd  " ),
                                  charIDToTypeID( "Orng" ),
                                  charIDToTypeID( "Ylw " ),
                                  charIDToTypeID( "Grn " ),
                                  charIDToTypeID( "Bl  " ),
                                  charIDToTypeID( "Vlt " ),
                                  charIDToTypeID( "Gry " )];
         var dlg = new Window( 'dialog', 'Change Layer Color' );
         dlg.ddColors= dlg.add("dropdownlist", undefined,  colors);
         dlg.ddColors.preferredSize.width = 100;
         dlg.ddColors.items[0].selected = true;
         dlg.ok = dlg.add('button',undefined,'Ok');
         dlg.cancel = dlg.add('button',undefined,'Cancel');
         var results = dlg.show();
         if( results == 1 ){
              var selectedLayers =  getSelectedLayersIdx();
              for( var l=0;l<selectedLayers.length;l++ ){
                   makeActiveByIndex( selectedLayers[l], false );
                   setActiveLayerColor( colorIDs[dlg.ddColors.selection.index] );
              makeActiveByIndex( selectedLayers,false );

Maybe you are looking for

  • HP Photosmart C4780 problem with wireless connection & firewall

    Hi I am trying to connect my HP Photosmart C4780 to my wireless network at home. Each time I try to configure my printer to my wireless network I keep getting the following HP Network Diagnostics Error Message: Problems may exist with network functio

  • Question about the hardware installat

    I just picked up the Creative SoundBlaster X-Fi XtremeGamer, and upon [attempted] installation, I noticed a couple things that I didn't expect. First, I noticed a rather large "AUX IN" connector on the top side of the card. I did some research, and a

  • Upload Error: Missing Application Descriptor File

    Hi, I keep getting an error when trying to upload my AIR 2.5 app, specifically, "missing application descriptor file".  I've double checked the proper XML format for 2.5, as well as checking its location by changing AIR extension to ZIP, etc.  The ap

  • Cannot open file, even with updates- help please!

    Every time I try to open/download this file, http://www.sba.gov/sites/default/files/forms/SBA%20413_0.pdf , I get this message: Warning: This form is not supported with the current version of Acrobat or Adobe Reader. Upgrade to the latest version for

  • Two or more table based forms on a single page

    Hi, Is it possible to have two or more forms fetching their respective tables on the same page ? I mean , to have two Automated fetching processes . I tried to change each page item source from ('DB Column' ... column_name) into ('DB Column' ... "TAB