How to: ungroup or remove text boxes in InDesign

Hello

I work on the 300-page report, how can I break the wire between the chapters? Please see the figure:
Untitled-2.jpg

Note: I use InDesign CC 2015 on Mac

Thank you

/*
------------------------------------------------------------------------------------------ ------------------------
StorySplitter
------------------------------------------------------------------------------------------ ------------------------
An InDesign CS/CS2/CS3 JavaScript by FourAces
© The Final Touch 2006
Version 3.0.0

Splits the selected Story to separate Text Frames, while maintaining their contents.
------------------------------------------------------------------------------------------ ------------------------
*/
var myScriptVer = "3.0";

if(app.documents.length != 0){
          var mySelection = app.activeDocument.selection;
          if(mySelection.length != 0){
                    myObjectType = mySelection[0].constructor.name;
                    if(myObjectType == "TextFrame"){
                              //The Interface Dialog
                              var myDialog = app.dialogs.add({name:"Story Splitter v"+ myScriptVer});
                              with(myDialog){
                                        with(dialogColumns.add()){
                                                  with (dialogRows.add()){
                                                            with(borderPanels.add()){
                                                                      var mySplitOptions = radiobuttonGroups.add();
                                                                      with(mySplitOptions){
                                                                                radiobuttonControls.add({staticLabel:"Split All Frames", checkedState:true});
                                                                                radiobuttonControls.add({staticLabel:"Split Before Selected Frame"});
                                                                                radiobuttonControls.add({staticLabel:"Split After Selected Frame"});
                                                                      }
                                                            }
                                                  }
                                                  with (dialogRows.add()){
                                                            staticTexts.add({staticLabel:"© The Final Touch"});
                                                  }
                                        }
                              }
                              var myResult = myDialog.show({name:"SplitOptions"});
                              if(myResult == true){
                                        var myStory = mySelection[0].parentStory;
                                        if(app.version.split(".")[0] >= 5){
                                                  var myTextFrames = myStory.textContainers;
                                        }
                                        else{
                                                  var myTextFrames = myStory.textFrames;
                                        }
                                        var myStoryFramesCount = myTextFrames.length;
                                        if(myStoryFramesCount > 1){
                                                  for(f = 0; f < myStoryFramesCount; f++){
                                                            if (mySelection[0] == myStory.textFrames[f]){
                                                                      var myTextFrame = f;
                                                            }
                                                  }
                                                  switch(mySplitOptions.selectedButton){
                                                            case 0:
                                                                      mySplitAll();
                                                                      break;
                                                            case 1:
                                                                      mySplitBefore();
                                                                      break;
                                                            case 2:
                                                                      mySplitAfter();
                                                                      break;
                                                  }
                                        }
                                        else{
                                                  alert("Are You Kidding Me?!\nThe Story you selected has only ONE text frame.");
                                        }
                              }
                    }
                    else{
                              alert("Wrong Selection\nYou selected the wrong type of object. Please select a Text Frame.");
                    }
          }
          else{
                    alert("No Selection Made.\nPlease select a Story to split.");
          }
}
else{
          alert("No Active Document Found.\nPlease open an InDesign document and select a Story to split.");
}

//----------------------------------------------------------------------------
function mySplitAll(){
          for(i = 0; i < myStoryFramesCount; i++){
                    myTextFrames[i].duplicate();
          }
          for(i = 0; i < myStoryFramesCount; i++){
                    if(app.version.split(".")[0] >= 5){
                              myTextFrames[i].remove();
                    }
                    else{
                              myTextFrames[0].remove();
                    }
          }
}

function mySplitBefore(){
          if(mySelection[0].previousTextFrame == null){
                    alert("Unable Break Thread.\nThe selected Text Frame is the FIRST text frame of the thread.");
          }
          else{
                    var myBfBreakFrame = mySelection[0].previousTextFrame;
                    var myAfBreakFrame = mySelection[0];
                    var myBreakStory = myBfBreakFrame.parentStory;
                    mySelection[0].previousTextFrame = null;
                    if(myBfBreakFrame.overflows == true){
                              var myOversetText = myBreakStory.texts.itemByRange(myBfBreakFrame.insertionPoints[-1],myBreakStory.insertionPoints[-1]);
                              myOversetText.select();
                              app.cut();
                              app.select(myAfBreakFrame.insertionPoints[0]);
                              app.paste();
                    }
          }
}

function mySplitAfter(){
          if(mySelection[0].nextTextFrame == null){
                    alert("Unable Break Thread.\nThe selected Text Frame is the LAST text frame of the thread.");
          }
          else{
                    var myBfBreakFrame = mySelection[0];
                    var myAfBreakFrame = mySelection[0].nextTextFrame;
                    var myBreakStory = myBfBreakFrame.parentStory;
                    mySelection[0]          .nextTextFrame = null;
                    if(myBfBreakFrame.overflows == true){
                                        var myOversetText = myBreakStory.texts.itemByRange(myBfBreakFrame.insertionPoints[-1],myBreakStory.insertionPoints[-1]);
                              myOversetText.select();
                              app.cut();
                              app.select(myAfBreakFrame.insertionPoints[0]);
                              app.paste();

                    }
          }
}

When a script is written a lot, that's eternity! It works perfectly with ID CC!

Adi, thank you very much!

Tags: InDesign

Similar Questions

  • How can I create a text box

    How can I create a text box? Canany body help me create a text box? I need examples of code for the creation of the text box.

    Thanks and regads: -.

    Jitendra.Balla

    Take a look at this example.

    http://NA.BlackBerry.com/eng/devjournals/resources/journals/jul_2005/creating_textbox_field.jsp

    Also check this thread.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=41759&query.ID=23...

    Concerning

    Bika

  • How do you add additional text boxes to a model card in MEA Mobile?

    How do you add additional text boxes to a model card in MEA Mobile? There are only three areas of default text of article metadata. I need to add 4 or 5 separate metadata text boxes to my card.

    Thank you.

    Here is a screenshot:

    aemQuestion.png

    You are allowed only three lines of metadata. However, you can add several fields of metadata for each line, like this:

    {{Title}} by {{author}}

    {{Summary}}

    {{Department}}, {{category}}

  • Impossible to move objects or text boxes in inDesign CC

    I was working on an inDesign document without problem, and suddenly, I was unable to move objects or areas of text with the selection tools. I could move only with the help of my arrows. The objects are not locked and are not on a locked layer. This problem occurs now in all my other documents, and create a document did not help.

    I found this thread (why can I not move objects and text boxes in Indesign CS5.5?), which suggests that I have my inDesign preferences 'trash '. I did, and it does not solve the problem. I also uninstalled and then reinstalled inDesign, but that didn't fix the problem either. I use a version of Mac OS X 10.9.5.

    Can anyone help? Thank you.

    I don't have any of this

    but I deleted the cache & restart & now its good working

  • Import a text formatting in a text box in indesign.

    I have a string stored in the XML to RTF. I need to import this string in a text box in indesign.  I wrote the code below. But when I run the code, I get only a blank created textframe. The contents are not displayed. Could someone guide me on what I do for this?

    ServiceRegistry InterfacePtr < IK2ServiceRegistry > (gSession, UseDefaultIID());

    Int32 ImportProviderCount = serviceRegistry-> GetServiceProviderCount (kImportProviderService);

    for (int32 ImportProviderIndex = 0; ImportProviderIndex < ImportProviderCount;. ImportProviderIndex ++)

    {

    Provider InterfacePtr < IK2ServiceProvider > (serviceRegistry-> QueryNthServiceProvider (kImportProviderService, ImportProviderIndex));

    InterfacePtr < IImportProvider > importProvider (provider, IID_IIMPORTPROVIDER);

    Assert (importProvider);

    if (! importProvider)

    {

    Continue ;

    }

    char buffer [5000];

    Memset (buffer, 0, 5000);

    strcpy (buffer, itemText.GrabCString ());

    PMString tt = buffer;

    CAlert::InformationAlert (tt);

    (Flow) InterfacePtr < IPMStream >

    static_cast <>(StreamUtil::CreatePointerStreamRead (buffer, 5000))); IPMStream *.

    if (importProvider-> CanImportThisStream (flow) == IImportProvider::kFullImport)

    {

    UIDRef item1;

    importProvider-> ImportThis (docUIDRef.GetDataBase (), flow, K2::kSuppressUI, & item1, & point);

    }

    }

    Any help or advice would be appreciated.

    Thank you

    PS

    Sorry, I have an error.

    Refer,

    Int32 numHandlers = registry-> GetServiceProviderCount (kImportProviderService);

    for (int32 index = 0; index)< numhandlers;="" index="" ++)="">

    InterfacePtr (provider)

    Registry-> QueryNthServiceProvider (kImportProviderService, index As Integer));

    InterfacePtr importProvider (provider, IID_IIMPORTPROVIDER);

    Int32 count is importProvider-> CountFormats();.

    Int32 formatIndex = 0;

    for (; formatIndex< count;="" formatindex++)="">

    FormatName PMString = importProvider-> GetFormatName (formatIndex);

    If (formatName == PMString ("RTF import filter")) break;

    }

    If (formatIndex< count)="">

    UIDRef Webster (none, kInvalidUID);

    DB-> BeginTransaction();

    importProvider-> ImportThis (db, myStream, kSuppressUI, &uRef);)

    If (uRef == nil) {}

    Cannot read as data RTF

    DB-> EndTransaction();

    break;

    }

    need to copy the imported data of uRef in textModel

    DB-> EndTransaction();

    break;

    }

    }

  • How to copy/paste the text box anchor to its anchor text and remove all checkpoints empty?

    Hi all

    I have a document of a few pages, but a story. The right column is the area of main text and on many places, anchored text boxes are placed which appears on the left column, as shown below.

    I want the text of each text box anchor to cut of his place and sticking to its point of insertion/anchor and remove all of the empty boxes of anchored.

    I'm trying since this morning but I was able to get the anchor object reference. Any help on how to start with will be useful.

    Marie rosine

    anchor_box.png

    OK, let's say you have a main text (not rooted) box and three text boxes that are anchored to the text it contains. One is anchored with text, the second is not anchored and the third argument is empty (I won't get into the anchor vs custom anchor line given that you mention in your message).

    Scroll us through the items on the page:

    function main(){
      var myDoc = app.activeDocument;
      var myPages = myDoc.pages.everyItem().getElements();
      for (var i = 0; i < myPages.length; i++){
      {
        var myPage = myPages[i];
        //Checks that the page is valid, and that it is not a master page. If either is true, skips to the next page.
        if (myPage.isValid == false) continue;
        if (myPage.parent instanceof MasterSpread) continue;
        var myItems = myPage.allPageItems;
        for (var j = 0; j < myItems.length; j++){
          //Current item.
          var myItem = myItems[j];
          //If myItem doesn't have a Character parent, it is not anchored.
          //The first and third text frames would fail this test.
          if (!(myItem.parent instanceof Character)) continue;
          //We only care about text frames.
          if (!(myItem instanceof TextFrame)) continue;
          //I think the only way this would happen would be if you had an image or
          //something else unexpected within the frame. I check for it so no content
          //is inadvertently lost.
          else if (myItem.texts.length > 1) continue;
          //If we're still in this iteration of the loop, all qualifications are met.
          //Flatten the text frame.
          //I don't use layers that often so, to me, flatten makes sense. You may want
          //to use a different term if there's a chance for confusion.
          flattenItem(myItem);
         }
       }
    }
    
    function flattenItem(funcItem)
    {
         //Hold onto the anchor character.
        var myParent = funcItem.parent;
         //Duplicate the text from within the frame so that it appears right after the anchor.
         //There may be other methods, but this works for me. I try to avoid copy/paste
         //so as not to deal with any clipboard mishaps. I added a check in case of empties.
         if (funcItem.texts.length > 0){funcItem.texts[0].duplicate(LocationOptions.AFTER, myParent.insertionPoints[0]);}
         //Replace the anchor character itself with a space (or whatever) which also
         //deletes the text frame it was anchoring.
        myParent.contents = " ";
    }
    

    I guess the takeaway is perhaps you aren't looking at the main text block and then check if anything it is anchored. You are watching each text block and find out if it is anchored. That's my approach, anyway.

  • How can I place a text box on the other in the left column of my head?

    Greetings! Below, you will find something that I worked on a link. Now I have to change the left side of the header that contains the text box "Hiring" in a box on top of each other using the same amount of space. I also need to make these 2 boxes pop out when you click them but only one at a time. How can I place a text over another box using the same amount of space without any screwing? I could also use some help getting these images that say 'HIRE' and 'FIELD NEWS' inside boxes instead of above them.

    Thank you in advance. http://www.bestmarketingnames.com/xbanneredit.php

    Despite the CF McBlob comments that I share, I'll try to answer your question immediately. Just add this new markup above your other div scroll like this:

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • How do I enlarge the text box

    I have the latest version of Skype and trying to extend the text box where I write. Now, it seems so small. I know that before you could develop the window moving upwards or downwards according to the needs.

    Someone knows how to do this? Is it still possible?

    http://community.Skype.com/T5/Windows-desktop-client/how-can-I-change-the-height-of-the-input-box-in...

  • How would I get the text box

    Hello

    I want to use a text box, how can I get it? in the edit field or field of basic edition are all just displays as a line, but I need like a box

    Try this,

            BasicEditField txtuser = new BasicEditField("", "", 28, BasicEditField.FILTER_EMAIL)
            {
                private int iRectX = getFont().getAdvance(getLabel());
                private int iRectWidth = Display.getWidth() - iRectX - 2;
    
                public int getPreferredWidth()
                {
                    return Display.getWidth();
                }
    
                public int getPreferredHeight()
                {
                    return 30;
                }
    
                public void layout(int width, int height)
                {
                    super.layout(width, getPreferredHeight());
                    setExtent(width, getPreferredHeight());
                }
    
                public void paint(Graphics g)
                {
                    g.setColor(0x000000);
                    g.drawRect(iRectX, 0, 248, 20);
                    super.paint(g);
                }
            };
    

    IT looks like what you want.

    ------------------------------------------------------------------------------------

    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • How to wrap an existing text box around an object?

    I installed the columns plugin for Photoshop CC 2014 and it does what I want it to do, however, every time I "columnise" my existing text box, which is wrapped up another image using paths to work (it comes to the video I looked to create the package), the plugin removes the work path connected as if it were a new fresh text box , I created, remove the packaging.

    I was wondering if there was a way to wrap text around an image/object, preferably after I put it in columns existing .

    Thank you.

    Ok. I installed the extension (I love the way that the extensions install using the Application Desktop Manager now) and it works well, but as you say, it does not account for the retention of the text shape/path and makes a new text box.  This text box is not based on a path, so you cannot modify it.  So low line here is Uber columns won't do what you want.  You could always email Anton ([email protected]) to get a definitive answer.

    But it's frankly hard to manually change your shape.  Well actually it's a little bit tedious, but not rocket science.

    1. Make your shape.  An easy way to do it would be to make as a selection, and then click Make route selection work icon at the bottom of the Trace Panel.  Drag the resulting path on the icon new way to save it.
    2. Now drag two guides to mark the gap between columns.
    3. Zoom way to the top of your path where guides cross it.
    4. Select your pen tool and place the cursor on the intersection of the road and one of the guides.  You will see a little + when you do this, add a point.
    5. Do the same thing to the other guide intersect, then add a third point between them.
    6. Press the delete key.  You now have a gap in the path.
    7. Down to the bottom of the track work and repeat.
    8. With the selected pen tool hover over one of the end point, and then click.  (You should see a little icon of string that indicates you are at the right place.)  I don't see that for some reason, but it still works.
    9. Now, hover over the end point above or below.  When you see the tiny icon (), close the path.
    10. Repeat for the other side.

    Not quite there yet.  You make the way to work in a form.

    • Go layer > new fill layer > solid color chose to any color. You disable this layer when finished.
    • Select the text tool and place the cursor within the form.  The pointer changes to a vertical bar with dotted circle. Click and paste the text.
    • You can store the text in Notepad or in a text box.  It does not matter.
    • It will not automatically be extended to the next column.  You will need to do it manually.

    Ahh... Just remembered.  When you close the original form in two distinct forms, the corners will likely swell.  Hold the Ctrl key to select the point angle, then Alt to drag the handle down, the low point.

    So there you have it.  Or just use InDesign, or even [spit] MS Publisher.

  • How do interactive drop down text boxes?

    As many know maybe of my recent posts, I'm pretty new to this thing any design. I get a pretty good shot of most of the things, but now I've reached a point where I am trying to create some interactive features.

    I have a page in a whish magazine iPad is a picture full page. I want to do is have a couple of buttons in random places on the photo, which when it is typed/press/pushed, place a drop-down list text and wraps what tapped/pushed/pressed once again, the text box. I don't know what it is that we call or how to do it so any help is appreciated.

    I can ot understand it myself if someone can give me a general idea of what this kind of issue and the General steps.

    Thanks for the help

    You might want to try State Multi objects (States of objects).

    A State must be an empty block and the other State, a text box.

    Buttons get the 'Go to' action so that you can at different States of objects when you press on them.

    If you are really looking for a way to make interactive (HTML are), you can use HTML (5) and include it in DPS as Web content.

  • Simple question: How do resize you a text box? (CS4)

    Don't know why it is so difficult... but... all I'm doing is that once I put a text box on the document and to put a text in it, I am unable to resize the margins (i.e. If the box was too broad, I dunno how to make the box in a narrower column). In all other adobe applications, you simply click on one of the boxes-anchor at corner of the outline of the box and drag. In Illustrator, all is to move all of the textbox control.

    You might have inadvertently disabled inclusive.

    View | See the bounding box

    CTRL + SHIFT + B (Win)

    Command + SHIFT + B (Mac)

    You can also resize a text box by using the free transform tool, but do so only when you want the text to scale (rather than redistribution).

  • How to identify design-related text boxes

    How to recognize In Design-related text boxes? Way I are there no indication, where I come to find out if a Yes tex boxes are interconnected?

    Thanks in advance.

    Show text Threads is in the view menu.

  • How to make a larger text box?

    Hello

    I have a text box. I would like to make it bigger with a larger font for the typing of texts as well.

    All I can do is to increase the width - nothing else!

    The police resulting type text still Arial 10.

    How can I make it bigger - height/width and the police.

    Thanx

    Movilogo,

    "Make sure you've got the quote at the end:"

    The text message part should still be there. If it does not please an example on apex.oracle.com and provide the name of user/password work/name space. You can create a new account for this purpose.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

    You can reward this answer by marking as being useful or correct ;-)

Maybe you are looking for