Its possible to change text frame contents inside group...???

Hi Everyone,
I'm newbibe to Indesign forums.
I had grouped image placed on rectangle and text frame. now i need change text frame content using indesign Javascript
Its possible to change text frame contents inside group..?
-yajiv

Hi Siraj,
Thank you very much for your assistance...
Actually I need swap both group of image and text frame to another group of image box and text frame.
I wrote code use of you advice and i struct with errors. can you rectify this code if possible...
Thanks in advance
-yajiv..
Code:
  if (app.documents.length != 0){
     if (app.selection.length != 1){
          if(app.selection[0].constructor.name == "Group"){
               app.select(app.selection[0].allGraphics[0]);
               var myGr1 = app.selection[0].itemLink;
               app.select(app.selection[0].textFrames[0]);
               var selText1 =app.selection[0].contents; 
     if(app.selection[1].constructor.name == "Group"){
          app.select(app.selection[1].allGraphics[0]);
          var myLink2 = File(app.selection[1].graphics[0].itemLink.filePath);
          app.select(app.selection[1].textFrames[0]);
          var selText2 =app.selection[0].contents; 
          myGr1.relink (myLink2);
          myGr1.update();
          myGr2.relink (myLink1);
          myGr2.update();
          app.selection[0].contents=selText2;
          app.selection[1].contents=selText1;
     else{alert("Please select the two selection....!!!");}

Similar Messages

  • Is it possible to change the frame rate of a motion template?

    Motion has some very useful templates, but the majority are only offered in NTSC, not PAL. (including all in 3D TEXT PROJECTS).
    Is it possible to change the frame rate to 25fps before I start adding my own stuff, so that I can easily get the timing right for a PAL sequence in FCP.
    If not in Motion, how else could this been changed?

    Try dragging all the groups from one project into another instead - you'll need to open both project and rearrange the windows so you can see the layers tab for both of them.

  • Hello! Does anyone knows if its possible to change a US keyboard of a macbook pro for a portuguese keyboard. And how much it is approximatedlly. Thanks

    Hello! Does anyone knows if its possible to change a US keyboard of a macbook pro for a portuguese keyboard. And how much it is approximatedlly. Thanks

    Welcome to the Apple Support Communities
    You will have to return the Mac and order one with a Portuguese keyboard, if you bought it less than 14 days ago.
    If not, you will have to buy a new Mac (that's because some keys may not fit onto your MacBook Pro keyboard) or just set up OS X with a Portuguese keyboard but with US keys

  • HT3696 How its' possible to change from 32 bit to 64 bit Processor for MacMini?

    How its' possible to change from 32 bit to 64 bit Processor for MacMini? Mini?

    You probably have a Core Solo or Core Duo model. You can upgrade the CPU to a 64-bit Core 2 Duo in the T7200-T7600 family.
    iFixit and OWC provide easy-to-follow, step-by-step guides. It's a delicate procedure, but not overly difficult. I'm all thumbs, and I have done it twice.
    Cheers!

  • Change Stage Frame From Inside MovieClip?

    How Do I Change Stage Frame From Inside MovieClip?
    Heres my code so far:
    hh.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
        gotoAndStop(2);
    i tried (root).gotoAndStop(2); but i got an error , #1061 ..
    Thanks in Advance...
    ASAP would be nice..

    well your a smart *** now arnt you   Haha..
    I missed 1 painful word in that line of code thanks heeps..

  • Satellite A200 - its possible to change my videocard?

    Hey,
    i was wondering if its possible to change my videocard for a better one. I currently have the nVidia GeForce Go 7300 and its an integrated videocard.
    But i dont know if that means that it is impossible to change it or maybe its possible to add an extra videocard in the laptop (SLI).
    So is there anything i can do about it?

    No, because the GPU is soldered on the motherboard. Not possible to remove it!

  • Can an InCopy editor add, remove and edit a text frame placed inside the main story text frame?

    I think I already know the answer to this which is - no. I'll explain why I am asking the question in a second, but the reason I think the simple answer is no is because - text frames are controlled by a designer in the layout file, an editor using incopy can only edit the text and images placed inside text frames, and so cannot resize them, add or delete them.
    Ok, so the reason I have asked this.
    Is there a way around this so that editors in incopy can edit certain types of text frame that are contained within the main text frame? I'm using these text frames to contain specific paragraph styles, giving them a boxed look and also with an anchored icon in the top left of the text frame depending on the type of paragraph it is. See screenshot as an example of a green text frame that I am using to contain paragraphs of type "tip".
    If it is not possible for editors in incopy to add, edit or resize these text frames (green tip frame in the example above), then how else can I style these paragraphs to give the same visual appearance, but without the use of wrapping them in a text frame?
    One (not so good) way around this is for the designer to add the text frames in the layout file after he gets the content back from the editor, then moving the "tip" paragraphs into these newly created text frames. However when the editor updates the content in incopy and gets these new text frames in their copy, they can not then delete them if they wish to, or if they add or reduce content inside of these green text frames then the frames dont grow to fit their edited content. So I dont think its a solution for the designer to control the adding, removing and resizing of these frames.
    UPDATE: I have just discovered that once a text frame has been placed into the document by the designer and the editor updates their copy in incopy-  they can then use the "Position Tool" to select that text frame - allowing them to resize it, or delete it! Fantastic. But would the editor be able to add these frames in themselves to begin with? Maybe have a document containing all of the objects available to them, copy and paste one of them into the main document and edit its content? Does anyone have any advice on how to go about this? Essentially I would like the editor to control the insertion, editing and removal of these inline text frames.

    True. But when all I am trying to achieve is a border around a paragraph, use of a table seems overkill to me. But if thats the only solution I have so far then I will have to go down that route.
    It would be useful to have an object libraries panel in InCopy so that editors can drag across predefined text frames into their doc via InCopy, but I cant see that option in InCopy. is there one? I have also thought about exporting the frames as seperate InDesign Snippets and saving them to an objects folder, then when an editor needs to insert one into their doc they simply use File > Place > "Choose required text frame snippet". However I have found that InCopy can't place InDesign snippets so that theory was a failure. Is there another format I could use to save the objects and bring them into InCopy? List below shows my findings so far for trying to save/export a text frame from InDesign and then import into InCopy:
    InDesign Snippet (.idms) - can't import into InCopy
    InDesign Document (.indd) - imports content as an image - only editable in InDesign
    InDesign Template (.indt) - imports content as an image - only editable in InDesign
    InDesign Library (.indl) - can't import into InCopy - no panel available in InCopy for object libraries (that I can see...)
    InCopy Markup (.icml) - only imports the text, loses the text frame

  • Change the Frame content Control style

    Hi,
    Is any way to change the style of current Frame content control  as dynamically...?
    I am using Frame control and navigating to Test.xaml, Test.xaml contains some windows Label control  with styles, So Need change the Test.xaml label color dynamically, while it's in Frame, How..Please help me...?.
    Frame.Navigate(typeof(Test));
    After navigating in to Frame, I need change the Test.xaml control styles  how..?

    Try this:
    1) Create some public static Brushes inside Test.xaml.cs
    2) In the setters for these brushes, assign the value to the Labels
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Is it possible to change text colour in code view?

    Hi all,
    Not sure if this is possible as never seen it myself, but is it possible to change the text colour in the code of the html?
    A site I am building at the moment is for a school who want to be able to edit text / links occasionally, and as they will only be using something like notepad and have no html knowledge between them whatsoever, I thought if I could highlight bits in the code which are 'not to be played with' it would make everyone's job a lot simpler!
    Possible or not?

    cs6_noob wrote:
    Can the comments only go at the beginning of a line, or can they, for example go after say a <p> tag but before the page text? (If you get my meaning!)
    Eg <p><!--edit from here--!>welcome to our website<!--up to here--!></p>
    Yes, you can, but you need to make sure the HTML comment tags are correct. What you have done won't work, but this will:
    <p><!--edit from here-->welcome to our website<!--up to here--></p>
    Notice that the exclamation mark is only in the opening comment tag. Not in the closing one.
    Opening tag for comment:
    <!--
    Closing tag:
    -->

  • I WOULD LIKE TO KNOW IF ITS POSSIBLE TO CHANGE THE SCREEN OF MY IPOD TOUCH, i WOULD LIKE TO KNOW IF ITS POSSIBLE TO CHANGE THE SCREEN OF MY IPOD TOUCH

    I would like to know if it is possible to change my ipod touch screen.

    Yes.  If you want to do it yourself, there are several retailers who offer replacement parts and step-by-step guides on how to swap out the display.  One such place is http://www.ifixit.com/.
    You can also choose to do an out of warranty exchange with Apple for the prices show on this page. They don't actually repair the iPod though, but instead swap out your iPod for a refurbished one of the same capacity and generation.
    http://www.apple.com/support/ipod/service/prices/
    Lastly, you can choose a third party service center who can replace the screen for you. Google for "iPod Touch screen repair" for a number of results.
    B-rock

  • Is it possible to change a report variable inside the sapscript

    Hi
    I have to adapt a sapscript and i need a certain value for a variable.
    For ex ekko-bukrs is empty in the report and i want to change it in the sapscript and give it a value
    i tried the next:
    /: define &ekko-bukrs& = '0001'   but it did not work
    Is it possible to change this variable in sapscript?
    I cannot change the report since it is sap standard.

    Hi Seba,
       you can use perform in the sapscript and then you can achieve your scenario in program.
    see example code below and modify according to your needs,
    /:           PERFORM GET_PURORG_ADDRESS IN PROGRAM ZM_PURCHASE_ORDER-------->call this perform in sap script
    /:           USING &EKKO-EKORG&
    /:           CHANGING &V_EKORG&
    /:           ENDPERFORM
    FORM GET_PURORG_ADDRESS      TABLES in_par  STRUCTURE itcsy------------------>call this in program
                                          out_par STRUCTURE itcsy.
      DATA :V_compcode LIKE <tablename-fieldname>.  
    if compcode is initial.
    then assign here.
      IF v_compcode IS NOT INITIAL.
        out_par-value = v_compcode.
        out_par-name = 'V_COMPCODE'.
        MODIFY out_par INDEX 1.
      ENDIF.
    Edited by: suresh suresh on Jul 30, 2009 11:15 AM

  • How to move grouped text frames as a group?

    I have a threaded text frame with two text frames total in the thread. I am trying to move only the second half of the threaded text frame from the second-to-last page to the last page of my document. I have been able to successfully do this using this code:
    var myDocument = app.activeDocument;
    var myEndFrame = myDocument.pages[myDocument.pages.length-2].textFrames[1].endTextFrame;
    myEndFrame.move(myDocument.pages[myDocument.pages.length-1]);
    However, this code does not work when the second half of my threaded text frame has another text box grouped inside of it (such as a pull quote). In that case, the script will only move the threaded text frame part and not the other text box grouped with it. I need the two text boxes to remain grouped, and I would like to move the entire group together to the last page of my document. I have tried everything I can think of to get this to work and have been unsuccessful. (For example, I tried to get my code to move the entire group, but I can't get it to recognize the grouped text boxes as a group.) It could be that I'm missing something obvious. Any help would be greatly appreciated.

    Hi,
    Suggest to check myEndFrame.parent before move.
    If its constructor.name == "Group" redefine myEndFrame. I mean:
    myEndFrame = myDocument.pages[-2].textFrames[1].endTextFrame;
    if (myEndFrame.parent.constructor.name == "Group") myEndFrame = myEndFrame.parent;
    myEndFrame.move(myDocument.pages[-1);
    Jarek

  • Its possible to change the qualtity after pgi?

    i wants to change the quantity after did the PGI/
    customer reqiurement plz give the ans
    magha

    hai sap gurus
    this is my customer senario . in that sd process max sale order 1 & max delivery two , but customer required multible billing documents
    EXMPLE:
    sale order : 10 pcs ( only one material)
    delivery allowed ; 2(two)
    billing doc ; 10 billing doc( for each pieces) so system shold give 10 billing doc from two delivry
    plz help me to solve the issue
    with advance thanks
    magha

  • Tables inside overset text frames

    Hi everybody!
    Im trying to write a script to set the width of all tables in a document equal to its parent text frame, I was succesful, but
    the tables that are overflowed do not get resized. I have only come up with a way to find if there is an overflowed text frame
    but not to find and overflowed text frame contents. PLS HELP!
    heres my code:
    //resizes tables
    var myTextFrames = app.activeDocument.textFrames.everyItem();
    var myTables = myTextFrames.tables.everyItem().getElements();
    for (var i = 0; i < myTables.length; i++){
             var myTextFrame =  myTables[i].parent;
                        var myWidth = myTextFrame.visibleBounds[3] - myTextFrame.visibleBounds[1];
                myTables[i].width = myWidth;
    //finds a textframe with overset text
    var myOverset = app.activeDocument.textFrames.everyItem().getElements();
                    for(var x = 0; x < myOverset.length; x++){
                        if(myOverset[x].overflows == true){   
                        alert("There is overset text")

    @Kai – cool. Maybe just a little thing:
    You suppose that the first text frame of a given story has the same width as the one with the overset (holding a table in the overflow).
    So, if we have the following situation:
    A table in the overflow will get too wide after running your script:
    Instead of the first text frame in the story we could address the last one directly with:
    else if ( container.constructor.name == "Story" ) {
        var myTextFrame = container.textContainers[0].endTextFrame;
    And the result will be:
    The property endTextFrame is in the class of TextFrame.
    We could also have written:
    else if ( container.constructor.name == "Story" ) {
        var myTextFrame = container.textContainers[container.textContainers.length-1];
    Uwe

  • Table of contents and the order of multiple text frames flowing across pages

    I have a multi-page document,
    on each page, there are 2 text frames:
    - A text frame for containing a PAGE TITLE
    and
    - A text frame, flowing from one page to another containing: a MAIN TITLE, a SECTION TITLE, and flowing body copy (on page 1); and another MAIN TITLE, a SECTION TITLE, and flowing body copy; (on page 2)
    When I generate a TOC, using the Page, Main and Section Titles styles, the expected outcome would be:
    Page Title             1
       Main Title           1
    Section Title          1
    Page Title             2
       Main Title           2
    Section Title          2
    But because the Main title and Section titles are all within one flowing text frame and the content flows across multiple pages, and each of the Page Titles are within 2 separate text frames, the actual TOC generated is:
    Page Title             1
       Main Title          1
    Section Title         1
       Main Title           2
    Section Title          2
    Page Title             2
    ...where the TOC lists all the TOC items from the flowing text frame in one grouping first, then the individual free standing text frame title.
    QUESTION: Is the only way to automatically rectify this is to combine all the text into one flowing text frame? or is there another workaround?
    Have played with the left/right, top/bottom alignment of the individual text frames; also experimented with the object layering, to no avail..
    Thanks for any insights.

    I ended up using a product called InFlow from EmSoftware.  The solution offers a plugin to InDesign that builds pages on the fly when there is overset text.  The setup is pretty minimual and it seems easy to use.  The only drawback that the plugin MAY have is that it does not remove the pages it built if the pages are not needed from record to record.  I could not test this myself since my test data did not test more then one record, but when I turned my proof set off, the pages that were built were still on screen.  It does seem to work well for what we are looking to do, so if anyone is looking for something that will build pages on the fly in situations where the "Dynamic Story Handling" is not available, I would suggest looking into this.

Maybe you are looking for