[AS] Help: Change the text in overflow < text frame >?

Hello again,

I am filling the blocks of text in my document with a randomtext in a table. Works fine now.

But not knowing how many characters compatible with, in the text box, which has space for only one line, about 10 words, I'll try not to repeat the random process until that theres no overflow the box.

The problem is this: when I edit text in the text block and it overflows, evil change the new text - but only the visible text gets crushed, leaving the rest overflowing in the box and keeps adding up and never ends the repeat loop.

if class of myPageItem as String = "text frame" then

                      set text of myPageItem to «"& my TextFill()»»

                    repeat until overflows of myPageItem = false

the value text of myPageItem to «"& my TextFill()»»

end Repeat

end if


Its the thing with the text in the text frame... How to crush each text visible and not visible in the box, any suggestions?

It does not work. What we have here is a failure to communicate. Here are the main points in javascript:

myTextFrame = app.selection [0]; I chose a block of text with the type tool, drag

myTextFrame.contents; the words that are part of the framework

myTextFrame.parentStory.contents; the entire contents of the story, including everything in excess

myTextFrame.overflows; true

Make sure myTextFrame is a reference to an object in the image text.

Tags: InDesign

Similar Questions

  • change the text of legend group object image size figure

    I need to change the text frame size legend for figure based on the width of the figure in grouped objects

    How to do it please advice.

    Your information and code are not accurate! > Some parentheses are missing, expand the textframe 240 or the width of the image?

    However: Everything made to the works contained in the user interface, it expands the scope of the legend in my test to the right. I decided to write an own function for editing.

    main();
    
    function main() {
    
    var curDoc = app.activeDocument;
    var allGroups =  curDoc.groups;
    
    for (var i = 0; i < allGroups.length; i++) {
      var curGroup = allGroups[i];
      var pItems = curGroup.pageItems;
      if (pItems.length != 2) { continue; }
      for (var j = 0; j < pItems.length; j++) {
        var curItem = pItems[j].getElements()[0];
        var constrName = curItem.constructor.name;
        if (constrName == "Rectangle") {
          var rect = curItem;
        }
        else if (constrName == "TextFrame") {
          var tf = curItem;
        }
      }
      var rectGB = rect.geometricBounds;
      var tfGB = tf.geometricBounds;
      tfGB[1] = rectGB[1];
      tfGB[3] = rectGB[3];
      tfGB[2] = tfGB[2] + 20;
      tf.geometricBounds = tfGB;
      fitFrame(tf);
    }
    
    function fitFrame(aFrame) {
      var lastBaseLine = aFrame.lines[-1].baseline;
      var b = aFrame.geometricBounds;
      aFrame.geometricBounds = [b[0], b[1], lastBaseLine, b[3]];
    }
    }
    

    Note: The script will check if there are two elements on the page of the group. It does not, check if these two elements are textframe and rectangle, it assumes that it is correct.

    Kai

  • I'd like to edit a PDF secure document did not change the text, or the layout at all I would do is highlight the text.  How can I do this?  With the help of Adobe Acrobat DC 15.9.20077.160923

    I'd like to edit a PDF secure document did not change the text, or the layout at all I would do is highlight the text.  How can I do this?  With the help of Adobe Acrobat DC 15.9.20077.160923

    You know the password? Otherwise, the security policy does not allow adding comments in the file, then there is nothing you can do about it.

  • Flash CC does not correctly change the text in a dynamic text. Help!

    I'm doing the simplest thing ever! I just want to change the text of a textbox using actionscript.

    I USE FLASH PROFESSIONAL CC!

    I have a dynamic with text

    Instance name: ' ' txtHello "

    Text: 'Hello'

    in the actionscript code that I wrote:

    txtHello.text = "hi"

    When the program runs, you expect the word "Hi" is displayed instead of 'Hello.' What actually happens is only the h comes up. I did it with the longer text and especially it doesn't show. Sometimes, to show anything. Sometimes here and there the letters appear.

    Help, please!

    watched many tutorials for other versions of flash (e.g. cs5) and what I do should work. Is this a problem with Flash CC. It works when you do that?

    It's simple, so which continues the task!

    Embed fonts in the textfield

  • Cannot change the text in the existing mathscript box

    I'm under Labview 8.2... I know it's super old, but I met some compatibility issues and found it much easier to continue in version 8.2.

    In my while loop I a mathscript box that controls which cases need to be chosen for each loop.  This configuration has worked perfectly in the past, but now when I try to change the text in the box of mathscript (blue box) I can not type anything in the box.  I click the mathscript box and selects just as if I want to move around.

    Anyone know what could be the cause of the problem?

    Thank you!

    You don't want the arrow tool. You want the tool to operate. One that looks like a helping hand.

    Have you checked that you have enabled editing that made a license for MathScript? Check your License Manager.

  • When I have something to stick in wordpad and then change the text, I'll then on preview before printing and most of the time the whole document is not there.

    Original title: need help with wordpad problem

    When I have something to stick in wordpad and then change the text, I'll then on preview before printing and most of the time the whole document is not there. I double space between lines and all that is more than one page disappears. I tried all the different formats (no envelope, window envelope, etc.). How can I fix?

    Hello

    ·         What happens if you use another application to preview before printing?

    ·         You are able to print the document correctly, or you receive no error message when printing?

    You try to use Microsoft Word or Notepad to check if you face the same problem.

    First of all, I would like to check to see if print preview is working on a new empty document with only a word in it.

    If Yes, then the problem is the document.

    You may need to clear any formatting, that depends on where you copied from.

    Your rule of printer drivers print preview

  • Using paint and how to change the text box.

    How can I select a text box that you want to modify in the paint - Windows 7 Home Premium?  Once I leave the text box I can't select again a second time to change the text or grab it to move... I must be missing something very simple?  Is there a manual program somewhere?  Yes, the zoom is 100% and I am the administrator.  Thanks for any help!

    The painting is a very simple program and does not support the re - select a text box to change the content.

    "mikecvista" wrote in the new message: * e-mail address is removed from the privacy... *

    How can I select a text box that you want to modify in the paint - Windows 7 Home Premium? Once I leave the text box I can't select again a second time to change the text or grab it to move... I must be missing something very simple?  Is there a manual program somewhere?  Yes, the zoom is 100% and I am the administrator.  Thanks for any help!

  • Can I change the text in 3D in Windows 7 to mine screensaver?

    Can I change the text in 3D Screensaver in Windows 7?

    Can I change the text in 3D Screensaver in Windows 7?

    Hi Patty,.

    Yes, you can certainly - here's how:

    1. right click on the desktop and choose "Customize".
    2. Select screen saver icon in the lower right of the box to 'change the visuals and sounds on your computer.
    3. Select '3D text' on the drop down and select "settings".
    4. from here you will have a series of options, one of them will be an option button under "Text" to choose or time "personalized text".
    5. change the "Custom" text in any text you want to display...

    (If this post was useful ("useful Vote") or response ("mark as answer") your question, please click on the corresponding button to help others find the answer more quickly.) Besides, if you feel that someone else has been useful, mark them too. Also, if you have any othercomments please let us know.)

    Hope this helps,

    Steve <> Microsoft Partner

  • Windows 7 to put on the desktop, it is too big for the screen, facing problems to change the text.

    Original title: problem with windows 7

    just had windows 7 put on my desk top of the page. It is great for reference but itwon can't I would like to change the text. If I change the resolution, that it makes the photos so you can really see them.it won't let me up the screen so I can't ask anything,

    Hello

    If you recently installed Windows 7 on the desktop, you can try the following steps and check if it helps.

    Method 1:

    We can refer to the computer or the device manufacturer's Web site and try to install the latest version of the display card drivers and check if it helps.

    Update drivers: recommended links

    Method 2:

    It can also refer to article and try the steps to solve the problem.

    Make the text on the screen larger or smaller

    Hope the helps of information.

  • Acrobat Standard DC - can't change the text and text box properties

    Earlier this week, I lost the ability to change the properties of the text and text boxes.

    When I add a comment with a text box or in the text caption, I do all the time, I used to be able to change the font color, size, alignment, etc.

    Now, when I go to insert a text box or the legend, all the options in the properties bar are grayed out.

    This issue effects ONLY the text in the box and the caption functions. all the other drawing functions work very well. I can change the color, fill and the type of lines around the text, I can just change the text.

    Any suggestions?

    Thank you.

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • Cannot change the text box.

    Adobe Acrobat DC recently auto updated to the latest version, and it seems that the new version does not change the text boxes.

    The screenshot below shows what I mean.  I added a text box and pointed the police to change the size / font style / color, but it is gray just to go out in the toolbar properties (Ctrl + E)

    ADOBE CANNOT EDIT TEXT BOX.JPG

    Has anyone experience this problem?

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • Change the text color with the eyedropper tool

    I've seen cc Photoshop tutorials where you can change the text color by using the eyedropper tool on the color swatch Panel. When the text is selected and the color swatch Panel is open. When I chose is which color I want out the color swatch Panel all them it does to change the foreground color and return to the soil box, why it changes the color of the text, as I have seen in tutorials?

    Any help would be appreciated.

    Thank you

    Rchjr

    When highlighted often is difficult to tell what color the text. You can work around this by doing the above, pressing ctrl-H or cmd - H on the keyboard and the highlight will be removed, but the text remains selected. Its exactly the same procedure that you use to make the mobile dotted lines disappear just leaving an active selection. Obviously the text tool must be still in use for all this to work with text.

  • How to edit a .ai (converted to a smart object) in photoshop.  I want to change the text and changed the text and graphics

    In photoshop, how to change a file .ai (converted to a smart object)?  I want to change the text and changed the text and graphics.

    Total beginner, so need help.

    Thank you very much.

    That must be edited in Illustrator.

  • DC as a sentence installed and I can't find anything! How do I highlight some text in the box, how can I change the text color?

    DC as a sentence installed and I can't find anything! How do I highlight some text in the box, how can I change the text color?

    Hi taraf32044550,

    I think the new user interface can be a bit of a learning curve, but I hope that you really like it when you find your bearings. Please check these tutorials will help you to find your way around: Acrobat DC Learn & support.

    In particular, I think that you will find this tutorial very useful: change text and images in PDF files

    Best,

    Sara

  • can I change the indents on Master Page without changing the text on the pages already finished?

    Hello

    With the help of experts on this forum, I corrected some problems of dash/tab on my two Master Pages.

    Here's the thing, though - it screwed up the four pages that I already created (and then manually set): the text in the placeholder on the top right text that I had already added to these pages and did other things also.

    I need to create Master Pages to use for all new pages I create in the future?  Or is it possible to set a Master Page and then tell InDesign to apply these changes to the new page I create, but to leave alone the pages already created?

    Thank you, Malcolm

    If the pages need to be different, you can create a new master page for each of these appearances. Conversely, if it's just a one-time deviation from the master, you could click the document page and choose replace all elements of Master Page in the Pages panel menu. The duplicate text boxes that you see is because you have redone the master to the pages of the document. This could be avoided by setting the text frame on the Master Page as a main text block. Who help me?

Maybe you are looking for