Skip to main content
Participating Frequently
September 2, 2012
Answered

Find overflow Text

  • September 2, 2012
  • 17 replies
  • 7757 views

Hi every one

is there a script that help to find the text boxes with overflow text (like in indesign with overset text)

This topic has been closed for replies.
Correct answer frameexpert

Dear Rick

here is a sample

https://www.yousendit.com/download/TEhXT204NDI1R1BWUThUQw

sorry for being soo late


OK, now that I see your document, I see the problem. My script was set to skip unnamed flows, and your callouts are in unnamed flows, which is fine. Here is the modified script:

var doc = app.ActiveDoc;

var flow = doc.FirstFlowInDoc;

while (flow.ObjectValid()) {

    var textFrame, subCol;

    // Get the last TextFrame and its last Sub Column.

    textFrame = flow.LastTextFrameInFlow;

    subCol = textFrame.LastSubCol;

    if (subCol.Overflowed === 1) {

        alert ("TextFrame is overflowed.");

    }

    flow = flow.NextFlowInDoc;

}

17 replies

frameexpert
Community Expert
Community Expert
September 3, 2012

In FrameMaker, it is sub columns (children of text frames) that have an Overflowed property. You can use something like this to see how it works:

var doc = app.ActiveDoc;

var flow = doc.FirstFlowInDoc;

while (flow.ObjectValid()) {

   

    var textFrame, subCol;

   

    // Skip unnamed flows.

    if (flow.Name !== "") {

        // Get the last TextFrame and its last Sub Column.

        textFrame = flow.LastTextFrameInFlow;

        subCol = textFrame.LastSubCol;

        if (subCol.Overflowed === 1) {

            alert ("TextFrame is overflowed.");

        }

    }

    flow = flow.NextFlowInDoc;

}

In reality, you will have to do something more practical when you find an overflowed sub column, like select it and scroll to it. Please let me know if you have any questions or comments. Thanks.

Rick

www.frameexpert.com
kenrou123Author
Participating Frequently
September 3, 2012

Dear Rick

Thanks for your reply but I couldnt make it work.

I am using framemaker 10 and I have imported your script on new script file and when I tried to run it, it didnt give me any results at all.

I am sure i am doing something wrong

can you give me some details how i run it?

thanks for you hard work

frameexpert
Community Expert
Community Expert
September 4, 2012

Can you post a link to a sample document? Thanks.

Rick

www.frameexpert.com