Selecting a Text Frame in another file (JS/CS3)

Hi, I'm a newbie so this is probably a dumb question.
I'm trying to copy the contents of a text frame in another ID file and copy/paste them into another text frame of my active document. Every example I find creates a NEW text frame and copies it and they work fine but I'm having trouble selecting the text frame or its contents (it's the only object in the document) in the already existing document.
The section I'm struggling with is:
var mySourceSlugDocument = app.open(File("/Macintosh HD/Users/Shared/Testfile.indd"));
var mySourceSlugPage = mySourceSlugDocument.pages.item(0);
var mySourceSlugFrame = mySourceSlugPage.pages.item(0);
app.select(mySourceSlugFrame.parentStory.texts.item(0));
app.copy();
app.activeDocument.close();
I'm doing something wrong here. It doesn't like the 'parentStory' in the select line. I'd be happy with a way of just doing a 'select all' and being able to paste it into the new document with a variable name so I can edit it.
Cheers,
G.

I think the third line should be:
var mySourceSlugFrame = mySourceSlugPage.textFrames.item(0);
Note though that you don't actually need to select/copy/paste. You can use duplicate().
Dave

Similar Messages

  • How to copy a table from one text frame to another...

    Is there a way to copy a table from one text frame to another? I'm using JavaScript. The following will move a table from one text frame to another, but I need to copy.
    var srcFrame = document.textFrames.item("section-template");
    var dstFrame = document.textFrames.item("test");
    srcFrame.characters[0].move(LocationOptions.before, dstFrame.insertionPoints[0]);
    Thanks,
    Mike-

    Hi Bhupinder,
    According to your description, you want to copy a table with Primary keys from one database to another database.
    As per my understanding, I think the best method is use Transfer SQL Server Objects Task in SQL Server Integration Services. The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server.
    Server roles, roles, and users from the specified database can be copied, as well as the permissions for the transferred objects. Indexes, Triggers, Full-text indexes, Primary keys, Foreign keys can also be copied.
    To use the Transfer SQL Server Objects Task, we should create a SQL Server Integration Services Project in SQL Server Data Tools, then drag a Transfer SQL Server Objects Task to Control Flow pane. Specify SourceConnection, SourceDatabase, DestinationConnection
    and DestinationDatabase for the Connection, select the table in the ObjectsToCopy category, then change CopyPrimaryKeys to True and the other corresponding properties in the task.
    References:
    Transfer SQL Server Objects Task
    Transfer SQL Server Objects Task in SSIS 2008 R2 With Example
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to select a text frame that has been "Sent to Back"?

    Hi Framers,
    In FM 7.2 (all patches up to date, running on Windows XP Pro), I added a note inside a text frame next to an anchored frame holding an image. I nudged the text frame close to the image but it blocked out a tiny portion of the image. So I selected the text frame and from the Graphics menu clicked Send to Back.  Solved that problem, of course. Now I want to change the wording in the note but can't do it because the entire text frame has been sent to back -- how can I select it to Bring to Front so I can edit its contents???
    This MUST be something totally obvious, right?  Can I plead pre-holiday brain freeze?
    TIA,
    Gay

    galson wrote:
    Hello again, Sheila ;~)
    I selected all and moved my cursor all around the page (around various pages, actually, since Ctrl+A selects the entire chapter), and I see what you mean by the color of the arrow's head changing between black and white. Is it significant that the ONLY time it's black is when I'm outside the frame of the page itself? (That is, in the white, non-editable space around the actual frame borders on the page.) Clicking anywhere, whether inside or outside the active area, deselects everything.
    HOLD THE PRESSES!  Even though I *knew* I hadn't grouped my text frame with anything else, after reading your suggestion, I selected the page frame to make sure I hadn't somehow grouped it with my text frame: I hadn't -- but then, on a hunch, I sent IT (the page frame) to the back -- now I can select the text frame!
    I'm marking your response as answering my question and I'm also going to try to mark Peter's the same way, because each of you in your own way, helped me resolve this problem.
    Thank you both and HAPPY HOLIDAYS!  (Gee, and I didn't get either of you anything... maybe next year  ;~))
    Gratefully,
    Gay
    Hi, Gay:
    The "I-Beam" pointer tool is called the Smart Pointer, because it changes to an I-beam when it's over text, and to the Graphics Pointer tool when over a graphic, or part of a graphic, or when you press Ctrl. It's easy to select the main text frame when you Ctrl+click on its interior text area inadvertently, when you're trying to select an anchored frame edge, or when you use Ctrl+A to select all. It's frustrating to have some of these unintended events happen when you're not expecting them. Always work with View > Borders ON, to display the edges of objects and reduce confusion, and always watch where you click. You can zoom iin to large magnification to see things better.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Selecting a random frame in another scene

    I have an app I'm creating with Flash CS5.5 with 42 different short stories in it.  It has 2 scenes.  Scene 1 is the opening and contents menu to access the stories.  Scene 2 contains the 42 stories.
    In scene one, I have a button that I want to be able to pick a random story so it would need to pick a random frame between 1 and 42 in scene 2.  I have seen some code in here that will pick a random frame when you open the program, but I don't know how to tie it to a button or pick a random frame in another scene.  Any ideas on how this is done?
    Thanks!

    I don't understand why, but it's not working properly for some reason.  I have only one scene now and the 42 stories ended up being in frames 88-139.  When I click the random button the first time, it seems to work ok.  It sometimes works a 2nd or 3rd time, but it eventually gets to the last story and it won't do anything after that.  I think it's going past the last frame of the timeline so the buttons no longer work after that.
    There is a randomizing button on every frame except for frame 1.
    This is the code I'm using for it with the first randomizing button located on frame 2:
    Random02.addEventListener(MouseEvent.CLICK, gotoF02);
    function gotoF02(e:Event):void{
    this.gotoAndStop(88+Math.floor(this.scenes[0].numFrames*Math.random()), this.scenes[0].name)
    After frame 2, the button changes to Random03, 04, etc. and the function changes to gotoF03, 04, etc.
    Any ideas of what is going wrong?
    Thanks!

  • Header affixed to a text frame, repeared with autofill, Indesign CS3

    Hi,
    Can I affix a text-header to a text frame such that when I use autofill, the text frame will be repeated into the auto-added-pages with the header attached on its top, centered?
    Can I do it on the Master Page?
    Best regards,
    Mickey

    Hi Peter,
    See my other message.
    Basically I have 3 text sections on my page. On every page.
    And I want the middle and bottom to have a header.
    If I affix the headers on the master page they will indeed appear on every page AT THE SAME PLACE.
    Then, assuming I was successfull in filling all 3 sections with text, I need to play with the frame size on every page so that the proper texts between the 3 sections are properly content-alligned.
    (imagine that the top frames contain and article. The middle frames contains commentary on the article. The bottom frames contain word dictionary. And I do not want to use footnotes. So I have to align the page-section-contents by adjusting each frame size.)
    When I do so, I wish the headers to move with the frames and remain in the same relative position to the frame.
    I tried Anchored Objects affixed to the frame, but when the Anchored Object is a text frame...the silly thing attaches it to the OutPort of the frame. And it is "automatically threaded". Which is not what i want.
    Maybe if the Anchored Object would be a Graphic Object it could work.
    I was hoping there is a more direct way.
    Best regards,
    Mickey Cohen

  • [JS] CrossReference using Text Anchor of another file

    Hello I would like to make a document indesign resume all anchor text for different documents in a book.
    Anchors nome example is "26/90", I have posted their names with their contents separated by a TAB.
    Ink to create a text, I use the command ". HyperlinkTextDestinations.add (erg [i], {name: erg [i]. Contents}"
    but I do not know how to cross reference this anchor.
    Thank you for the info
    Traduction
    Bonjour je voudrais faire un document indesign reprennent tous les ancre de texte de diffèrent documents d'un livre.
    Les Ancres se nome exemple "26/90", je dois affiché leurs noms avec leurs contenus séparé par une TAB.
    Pour crée une encre de texte, j'utilise la commande ".hyperlinkTextDestinations.add(erg[i],{name: erg[i].contents}"
    mais je ne sais pas comment mettre une référence croisé sur cette ancre.
    Merci pour ces info
    Here's a first code:
    var myBookFilePath = File.openDialog("Choose an InDesign Book File", "Indb files: *.indb");
    var myOpenBook = app.open(myBookFilePath);
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
    // Open up every file in the currently active Book
    app.open(app.activeBook.bookContents.everyItem().fullName)
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = "25/78";
    for (i= 0 ; i < app.documents.length; i++) {
        var myDoc = app.documents[i];
        var myFound = [];
        myFound = myDoc.findGrep();
        $.writeln("Found " + myFound.length + " Main headings.");
        for (var b = 0; b < myFound.length; b++)   {
            myDoc.hyperlinkTextDestinations.add(myFound[b], { name: myFound[b].contents + "_"+i + "_" +b});
               //myDoc.hyperlinkTextDestinations[x].name;
            $.writeln(myDoc.hyperlinkTextDestinations[b].name);
        $.writeln("There are now " + myDoc.hyperlinkTextDestinations.count() + " destinations.");
    anchors and I get the following non "25/78_1_0, 25/78_2_0, 25/78_2_1 and 25/78_2_2 "
    I do not parvien creates cross reference the anchor text in another Master File (app.documents [i]) Book .... examples I found did not help me.

    Hi,
    I advance the principle function but I have a problem with the line 51, and my knowledge of code is not very good.
    Here is the error message: The selected object is being used by another Hyperlink.
    Thank you for help can
    translation
    Bonsoir,
    J'avance, le principe fonction mais j'ai un problème à la line 51, et ma connaissance des code n'est pas très bonne.
    Voici le message d'erreur : L'Objet sélectionné est utilisé par un autre Hyperlien.
    Merci pour un peux d'aide
    #target indesign
            Ouverture du livre et des fichiers pour les encre
    // Variable globales p
    var leFichier01 = "106_TVA_OK3.indd";
    var leFichier02 = "107 TVA ok1.indd";
    var leFichier03 = "108 TVA ok1.indd";
    var leFichier04 = "113 TVA chrono.indd";
    var lesFichiers01 = [leFichier01,leFichier02,leFichier03];
    main();
    function main(){
        if(app.documents.length != 0){
            if(app.selection.length != 0 && app.selection[0].constructor.name == 'Table'){
                    var nomTableau = app.selection[0];
                        dirTVA_2012_deux(nomTableau);
                        exit();           
            else{
                        alert("Selection un tableau");
                        exit();
        else{
            alert("Ouvrait un document et Mettre son cuseur dans le points de départ");
            exit();
    function dirTVA_2012_deux(leTableau_Chono){
                        app.findGrepPreferences = NothingEnum.nothing;
                        app.changeGrepPreferences = NothingEnum.nothing;
                         with (leTableau_Chono.columns[2]) {
                             for (var tab = 0; tab < cells.length; tab++) { // sue toutes la colonnes
                             //for (var tab = 0; tab < 9; tab++) { // sur 10 cell pour le test
                            // faire une boucle par documents
                                if (cells[tab].contents != null) {
                                            app.findGrepPreferences.findWhat = cells[tab].contents; // remplacer le 1 par le conteur de colonnes "tab" conteur de cell
                                    for (var conteurFich = 0; conteurFich < lesFichiers01.length; conteurFich++){
                                             var leResultat = [];
                                            leResultat = app.documents.itemByName(lesFichiers01[conteurFich]).findGrep();
                                        // pas de IF le test est dans la boucle for!!
                                                  for (var b = 0; b < leResultat.length; b++)   {
                                                        var s = leTableau_Chono.columns[3].cells[tab].insertionPoints.firstItem(); // MON Problème est làà!!!!!!
                                                        var cr_destination = app.documents.itemByName(lesFichiers01[conteurFich]).hyperlinkTextDestinations.add(leResu ltat[b], { name: leResultat[b].contents + "_"+  conteurFich + "_" +b});
                                                        var cr_format = app.documents.itemByName(leFichier04).crossReferenceFormats.itemByName('Philou007'); 
                                                        var cr_source = app.documents.itemByName(leFichier04).crossReferenceSources.add({sourceText:s, appliedFormat: cr_format} );
                                                         var cr = app.documents.itemByName(leFichier04).hyperlinks.add ( cr_source, cr_destination);       
                                                } // fin du For su r "leResultat"
                                      } // fin du FOR sur les fichier "lesFichiers01"
                                } // fin du If test cell vide
                            } // fin du For sur les cell
         }// fin du with tableau   
    }// fin de la function

  • CS3, VBS, Selecting multiple text frames in a region is very slow

    Hello,
    I'm writing a script that selects a large crossword grid (19cm x 19cm), and changes the font and alignment before exporting out as an eps.
    When I run the code below, it starts off selecting the frames quickly and then gradually slows to a crawl, before being painfully slow at the end. It takes 35mins to run it on the clues grid and then the solution grid.
    Can anyone think of a way to rewrite the code so it's quicker? Or are there some settings that could be changed so it handles better? I've changed the Display Performance settings to the bare minimum, but it only has a little effect.
    Thanks for any help ... Nigel
    rem Selects grid and fixes text
    Set mySolPage = myDocumentA.Pages.Item(2)
    For myCounter = 1 to mySolPage.TextFrames.Count
    Set myTextFrame = mySolPage.TextFrames(myCounter)
    myBounds = myTextFrame.GeometricBounds
    If myBounds(0) > 35 and myBounds(1) > 5 and myBounds(2) < 240 and myBounds(3) < 210 Then
    myTextFrame.select(idSelectionOptions.idaddTo)
    myTextFrame.Texts.Item(1).AppliedFont = "Tahoma"
    myTextFrame.Texts.Item(1).fontstyle = "Bold"
    myTextFrame.Texts.Item(1).baselineShift = 0
    myTextFrame.textFramePreferences.VerticalJustification = idVerticalJustification.idCenterAlign
    myTextFrame.textFramePreferences.ignoreWrap = 1
    myTextFrame.textFramePreferences.firstBaselineOffset = idFirstBaseline.idAscentOffset
    else
    myTextFrame.select(idSelectionOptions.idremoveFrom)
    End If
    Next

    hi Nigel,
    1) move your TextFrames to separate layer - then you don't need to check Bounds
    2) turn OFF redrawing:
    Property EnableRedraw As Boolean
    Member of InDesign.ScriptPreference
    If true, enables redraw during script execution.
    3) create and use Para or Char Style - then you don't need to apply many times same params
    myTextFrame.ParentStory.Texts.Item(1).AppliedParagraphStyle = myParaStyle
    or
    call myTextFrame.ParentStory.Texts.Item(1).ApplyParagraphStyle(myParaStyle,True)
    and why you have:
    else
    myTextFrame.select(idSelectionOptions.idremoveFrom)
    there is no Select command ...
    but if you have Select command somewhere before - you can iterate .Selection collection - so you don't need to check bounds
    robin
    www.adobescripts.com

  • Multiple selected text frame to table

    I am looking for a script that will allow me to select multiple text frames at one time and have the contents in those text frames converted to tables.
    What I have to do now is place the cursor in one text frame, select all, select menu item "convert to table", the defalt dialog appears and I click ok.
    I have ten text frames on a page (for example). The manual process means I have to do the text to table 10 times per page.
    So, I would like a script that will allow me to select all 10 text frames and convert the content of each frame to a table.
    Any suggestions are appreciated.
    RPP

    This should do it:
    if (app.documents.length > 0 && app.selection.length > 0)
      for (i = 0; i < app.selection.length; i++)
        try {app.selection[i].texts[0].convertToTable ("\t", "\r")}
          catch (_) {}
    Peter

  • Select all Linked Text Frames

    Dear All,
    My Request:
    1. Is it possible to select all linked text frames of my selecting text frame (Please refer attachment)
    2. Suppose If we select all text frames, is it possible to fix height for all text frames like as 3p or 4p etc....
    Trying script for select all linked text frames:
    if (app.selection[0].nextTextFrame == null)
       if (app.selection[0].previousTextFrame != null)
            alert("pass")
            app.select(previousTextFrame.parent) && app.select(nextTextFrame.parent) && app.select(startTextFrame.parent)
    Could you anyone give solution for my request.
    Thanks in advance
    Beginner

    Hi All,
    If I select any text frame, I need to select all linked text frames of selecting text frame.
    Please can anyone help me...
    Please refer the above screenshot for your reference.
    Trying script:
    if (app.selection[0].nextTextFrame == null)
       if (app.selection[0].previousTextFrame != null)
          myParagraphs = app.selection[0].parentStory.paragraphs;
          for (j=0;j<myParagraphs.length;j++)
            myParentTF = myParagraphs[j].parentTextFrames[0].contents
            alert(myParentTF)
    Output i needed:
    Thanks in advance
    BEGINNER

  • What is the best way to import a graphic? & How do I create a text frame for a figure caption?

    Hello all! I've been working from the FM book for almost 2 hrs trying to figure this out, so now I need your help. I am almost to this point:
    Problem I: Importing a graphic
    First of all, which is the best way?
    -Insert an anchor frame and then import the graphic into the frame OR
    -Just insert the graphic and get the anchor frame by default
    Here’s my importing and sizing problem:
    I hit ENTER to make a new paragraph line (side note: the book says make a new paragraph by hitting ENTER, import the graphic, and then ESC m+p to shrink wrap so that you can avoid the graphic overlapping the above text. I do exactly this (I believe), but my graphic still overlaps the above text when I shrink wrap. What the...?)
    I insert an anchored frame with position Below Current Line and alignment CENTER (I chose to the insert anchor frame, since this way I have control over its alignment, correct?)
    Anchor frame is selected when I import my image file
    In the Imported Graphic Scaling box, what do I select if my file is HUGE (3072x2304)?
    -Fit in selected rectangle (when I choose this the image imports small and fits in the anchored frame with lots of white space around it)
    -72 dpi
    -75 dpi
    -150 dpi
    -300 dpi
    -Custom dpi: 96 (I’ve tried changing this to a smaller number (20) and I get a message that says “cannot handle a bitmap of that size.”)
    I’ve had the best luck with selecting FIT IN SELECTED RECTANGLE, and then I just scale the image with my shift+click. If I choose 72 dpi or Custom, my image imports HUGE, and I just can’t manage it. I don’t have a method for resizing these images outside of FM.
    Problem II: Creating a text frame for a caption
    Once I have chosen FIT IN SELECTED RECTANGLE, I try to insert a text box underneath the image (and inside the anchor frame) to type a caption in it.
    In Create New Text Frame box, the default is Number 1 and Gap 0.25. I click SET.
    Next, I double-click inside the text frame to begin typing, but the cursor is OUTSIDE and UNDERNEATH the text frame! What the heck??? I’ve done this before and it has worked just fine. Then I had another problem where when I did get the text inside the text frame, I would select the text frame to move it, and it left the text behind! (I moved the frame but the text was separated from it and left behind.)
    THANK YOU in advance for your help. I hope I wrote this out clearly enough. I appreciate those who respond. P.S. I'm in FM 10.

    My favorite method is to use a one-cell table for graphics and captions.
    Import the graphic by reference into the table cell. Create a "Caption"
    paragraph tag and assign it to the table title. (The title can be set
    for above or below the table cell. I prefer below.) Now, whenever you
    insert this table, it will be ready for graphic and caption. Another
    advantage of this method is that graphic and caption always stay
    together at page/column breaks.
    When you create the table format above, assign it to have a -2.0 space
    above. Then, create a paragraph tag, such as "TableAnchor" and assign it
    -2.0 pt font size and -2.0 space below. (You can substitute a different
    point size, but it must be the same in all three places. The TableAnchor
    paragraph will hold the table and these settings let tables fit against
    the top margin where necessary. Otherwise, they dip down a bit.
    I wrote this from memory, so I hope I remembered all the steps!

  • 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

  • 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....!!!");}

  • Adding a Text Frame to an Existing Group

    I have belatedly discovered another difference between CS4 and CS2 -- I don't know whether this started with CS3 or not; I think perhaps it did.
    When you want to add a text frame to an existing group (which means create a new one within group), it's fairly straightforward unless the group is inline to a story. Then the new item gets added at the wrong place (I suspect what actually happens is that it always used to get added at the wrong place and then moved to the specified coordinates; but in CS2 and earlier, there was no automatic updating of the screen so the coordinates worked, but in CS4, the addition of the new frame moves the inline and so the coordinates you're aiming for are no longer correct). I worked around this in the following script by changing the anchoring and then changing it back -- I'm not entirely sure that this is foolproof, but it works on the job we're using it for.
    //DESCRIPTION: Add New TF to Parent Group of Selected TF
    (function() {
         if (app.documents.length > 0 &&
                   app.selection.length === 1 &&
                   app.selection[0].parent instanceof Group &&
                   app.selection[0] instanceof TextFrame) {
         var group = app.selection[0].parent;
         if (group.parent instanceof Character) {
              // we have an anchored group. Make sure it is custom while processing
              var origAncState = group.anchoredObjectSettings.anchoredPosition;
              group.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
         var bounds = app.selection[0].geometricBounds;
         var newTF = group.textFrames.add({geometricBounds:bounds});
         newTF.move(undefined, [0, -1]); // offset a pica -- or whatever the units are
         if (origAncState !== undefined) {
              group.anchoredObjectSettings.anchoredPosition = origAncState;
         app.select(newTF);
         } else {
              alert("Please select a text frame in a group.");
    Dave

    Open the PDF in Acrobat (not Reader).
    Use the "Draw Rectangle" tool (Comment :: Drawing Markups)
    Go into the Rectangle Properties to configure appearance for border line style, thickness and color; fill color and opacity.
    Be well...

  • How to Embed a Text Frame Within a Text Frame with Smart Text Reflow

    This is driving me nuts, and I've wasted hours searching exhaustively but can't seem to find the answer.
    I've been working with this indesign file and cleaning it up really well.  I now have all the text flowing with smart text reflow.  There are two parts in the book that have columns of information, or tables.  The way it was originally done was having a text box placed inside the text box.  But unfortunately, whenever you add pages before or after, the text box won't follow with the text box it is inside.  I have tried grouping the two text boxes together, but this doesn't seem to work with Smart Text Reflow (since every page is based on the primary master). How do you embed a text frame inside another text frame that is based off the primary master?  I guess it would be like using the text frame as an object. 
    I included an image to help my explanation.
    I even tried adding columns and then spannign the header part across, but this still doesn't flow with the rest of the text.

    ANchor it into the other text fram, look in the help file. Keyword = Anchored Objects.

  • Can you connect differently tagged text frames?

    I have a one file document (no book) that I would like to have two columns on the first page and the Left/Right pages have one column with a side head. I would like the right column on the first page to flow into the second page.
    Is there a way to connect differently tagged text frames together so that, although their appearances are different, the text flows from one to the other?
    Thanks,
    Tim

    tkelly5446 wrote:
    I have a one file document (no book) that I would like to have two columns on the first page and the Left/Right pages have one column with a side head. I would like the right column on the first page to flow into the second page.
    Is there a way to connect differently tagged text frames together so that, although their appearances are different, the text flows from one to the other?
    Thanks,
    Tim
    You can manually connect text frames on body pages, or on master pages, that have the same flow tag. Search Google for "framemaker connect text frames" without quotes.
    For the text to flow automatically from one body-page text frame to a body-page text frame on another, and create new pages as needed, the text frames need to be on master pages, have the Autoconnect property turned on, and be in the same text flow. FrameMaker only applies Left and Right master pages (you get them if your document is set for facing page.) To apply custom master pages instead of Left and Right, you need to set up a mapping table on a reference page for use with the Apply Master Pages feature. Search Google for "framemaker apply master pages mapping table" without quotes.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for

  • Service entry sheet IN ML81N

    Hello Boys, I want to know what is the relation between tables ESKL, ESKN. I want to obtain the Account assignment for a line of service entry sheet. How does SAP to save the data of Account assignment for in a service entry sheet? What are the keys

  • T60 - Screen flickers then turns off

    I'm having a repeated issue with a T60 - the screen will flicker for an hour or two occasionally, with what looks like windows showing VERY briefly, midway down the screen and to the right. Then the screen goes black. The harddrive continues, the lig

  • Lobbying for new features

    Folks, I'm in need of some help. I'd like to lobby for features to be added to LV and hoped I might get the development community to assist. The features are 1) arrays of attribute (property in LV 6i) nodes 2) multiselection ring controls If you beli

  • Error in inserting Task SOAINFRA.WFTASKPKG_111160

    Hi All, I have a main process which has call activity to a reusable process which in turns has a call activity to another reusable process.After successful deployment when i try to create an instance i am getting the below error.I am using Oracle BPM

  • MacBookPro 15" CPU whine: how to test,  samples as .mp3

    My W8614- MacBook Pro 15" still has the CPU whine, both with the power adapter plugged in (lower volume) and unplugged (higher volume). It emanates from both speakers even when the speakers are muted (volume zero). My guess for the root cause is not