How to detect excess content accurately when you use tables?

Hello, all. I am familiar with the way to detect the content in excess of a block of text, namely:

If (myTextFrame.parentStory.contents.length > myTextFrame.contents.length) {}

Alert ('there is overset text');

} else {}

Alert ("' there is no overset text");

}

However, the content of my story is three tables, rather than text. Each table contains dozens of cells filled with text. Yet, the 'length' of the framework property is only 3! How can I accurately read the length of the content as most of it is in the tables so that I can test it for overset text?

In case it helps someone, a more detailed description is:

  1. If there are three tables in the history and only 2 adjustment on a block of text of page size, the length property of this frame will be 2. Kind of weird, but is not a problem yet.
  2. In the same scenario, however, if the third table that BEGINS on page but spills on (creating a situation in excess), the length property of this frame will be 3 - causing her think test there is NO overset text! InDesign sees just 3 characters from history and only 3 characters on this page.
  3. When I look at the property 'content' of the story, he reads just 3 characters square. They obviously have some sort of special character. InDesign apparently takes the notion of 'table' and simply writes a character of space reserved for it in the property 'content '.

I'll have to create a routine to loop through every cell of each table and add it somehow to get the length you want? How I just test for in excess-ness?

Thank you!

There might be a better way, but I just built this expression:

app.activeDocument.stories.item (0).tables.lastItem (). cells.lastItem (). point insertionPoints.last (). parentTextFrames.length

;-)

Dirk

Tags: InDesign

Similar Questions

  • How can I customize the toolbar when you use the browser of the attribute

    In CVI 2012, changes in the toolbar depending on the environment, for example, it is different to the source window and the user interface editor. The toolbar can be customized using the Options menu / toolbar...

    Unfortunately, when you use the browser of the attribute of the user interface editor, another toolbar is displayed, i.e. not the UI Editor toolbar... I would have assumed that the browser of the attribute belongs to the user interface editor, obviously this isn't... So, how can I customize the toolbar when you use the browser of the attribute?


  • How can I change the scale when you use the measure tool

    How can I change the scale when you use the measure tool

    With the tool selected, right-click the document, and then select "rate of change of the scale.

  • How to install the PFB fonts when you use Windows 7 64-bit?

    I got a new computer with Windows 7 64 bit. But when I copied the fonts I used on the old computer, PFB fonts do not work any longer.

    The former ATMF program doesn't work so how can I now install PFB fonts on this computer?

    Anni

    I hope that you did not try to install the old software of Adobe Type Manager . If you did, you may need to completely reload Windows if you cannot restore your system to its state before you try to install this software!

    Assuming that you did not this fatal error, the method to install Type 1 fonts, which each consists of a .pfb and .pfm file is as follows:

    (1) copy the .pfb and .pfm files in a single directory if they are not already available.

    (2) select the .pfm for the fonts you want to install files.

    (3) right click and select install which will then install the fonts on your system by copying the .pfb and .pfm files into C:\Windows\Fonts directory. Do not drag - move these files! If you do not want the font files themselves reside in the C:\Windows\Fonts directory, when you right click on the file, select install as a shortcut. This installs the police but he refers to his current location.

    -Dov

  • How to go from "offline" Mode when you use Firefox on an android device that is connected to the internet through Bluetooth.

    I have been using my tf300. Whenever I try to open Firefox on the Tablet while using a Bluetooth connection, the only screen that Firefox opens is a generic screen displaying 'Offline Mode '. Is there a way to switch to online mode or I am able to use the browser on a wireless signal?

    Could you clarify - are other applications can connect to the internet when you are logged in this mode?

  • How to make an advanced search when you use adobe reader software in a firefox window?

    I used to be able to do an advanced search in a tab in firefox, but when I updated firefox to version 17.x 33.0 version, the interface has changed and I cannot figure out how to do more.

    Finally, I realized that a simple search can be made with Ctrl-F, but I would get the Advanced Search Panel.
    When I use internet explorer, it has a binoculars icon that will open the advanced search. Firefox doesn't have this.

    In addition, Firefox put up their own PDF Viewer with version 19.0; It's no longer using the Adobe Reader plugin.  See http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • How to change the search engine when you use the functionality of Firefox Home button Search?

    In Firefox itself, I have configured duckduckgo as my default search provider.

    But when I use the host Firefox search button it is always defined on google and I don't see any possibility to change that?

    I love the Firefox Home button Search (or whatever we call it) otherwise, but it's annoying that it does not use the default Firefox.

    I use the Google Launcher now.

    Hi mrt181, it is planned to use the same search engine as in firefox - however, there is a bug at the moment, so it does not apply in all situations.
    usually, it will be enough to change the default engine in firefox back once to work around the problem in the search widget and get the same as set in the browser search provider.

  • How to get out a window, when you use the main screen?

    When I'm in the MBR to 8 window and I opened a program like IE, how to close to return to the main screen. Some other icons are the same thing. I'm looking for a way to close it and return.

    I know that I can go to the lower left window, but did close these windows? Hope this makes since. I think that if I click on music it does the same thing. I can't end this one. I can find a break and other things.

    Maybe I'm not dragging my slider on the right side?

    Thanks, Bruce

    Bring your cursor to the top of the standby screen until you see the hand and then click and drag it to the bottom of the screen... Who's going to close an application and take back you to the start screen.

    Press windows + C which will open the charms of the right side

    Press windows + key X that will open a menu of useful type administration programs

    I hope that helps

    Brian

  • How to get a 'white' answer when you use 'if' statements in a table

    I use a table for an invoice where an element is classified, but more can be shipped as ordered. I have figured out formcalc expression where I can get a 0 in the column "out of stock" If the delivered quantity is more than the ordered article, but I can't get rid of a value of 0 in the rest of the column out of stock when all information "shipped" columns "orderly" and. Try to get this column blank if there is no order or shipping information.

    So far, it works for the math part. Don't know how to write an 'empty' in the calculation

    Sum(ordered-shipped)

    If (Sum(ordered-shipped) > 0)

    then backordered = Sum(ordered-shipped)

    ElseIf (Sum(ordered-shipped) < 0)

    then out of stock = 0

    endif

    Any advice will be greatly appreciated. Thank you!

    Have you checked the patterns listed for your numeric field in the object palette?

    This could be the cause for the zero. I tried on my system local and if I assign null, he demonstrated an empty value.

    KC

  • How to return to normal mode when you use vim shortcuts in the code/style editor?

    I try to use vim shortcuts keyboard for code/style editor in Firefox Developer Edition. I can type 'i' to switch to insert mode, but how do I return to the normal mode? ESC activates / deactivates the pane of the console, but don't come back to me in normal mode.

    Sorry, I misunderstood. I'm not familiar with the way VIM works. CTRL + C doesn't do what you want?

  • How can we replace Oracle form when you used by another user

    Hi Experts,

    Is it possible to replace Oracle form while in use by another user?

    Some time need deliver urgent fixes on the production environment, but it must wait for downtime, and the form does not use.

    I searched the Forum, but able to get the answer to this topic, I will be grateful if you could provide no alternative to do this.

    Env:

    Windows Server 2008 R2

    WebLogic Server 10.3.5

    Oracle form & report 11.1.2

    Hello

    For Production environment, it will be handled with tactics that led to minor maintenance work as well.

    You must have two physical directories (real and temporary) including the same fmx/plx/pll/mmx, files etc.

    and a file reference of in the FORMS_PATH in default.env, who have the latest version of the source.

    Copy the last source file into a temporary directory, when the user take the new session, it will access the new version of the source of the temporary path and who obviously last source version.

    Meanwhile, once the actual source published by the user version, you can copy the latest version of the source to the real directory and reset the FORMS_PATH with the actual path.

    In this way, you can solve your problem.

  • I have installed on my computer the other SSD hard drive and now want to install Photoshop and Lightroom this station and I'm not on the C drive. How the exchanged the installation location when you use your creative cloud in your program.

    Photoshop is installed on your C partition and how installing it on another partition now!

    Heinonen Petri dish that you can customize the installation location in the preferences for the desktop creative cloud application.  Please be aware that the creative Cloud desktop application and many still shared components must be installed on the primary disk that contains the operating system.

    For more details on how to customize the installation location please see CC help | Download, install, update or uninstall applications.

  • How to change the imbedding option when you use the command set?

    When I try to place any Illustrator (latest version) its automatically embedded file. Is it possible to change this, the file will be linked and not integrated?

    yarontm,

    Second action (I posted this an hour ago, or rather it could not display for some or no reason):

    Are you DoubleClicking the file? If you are, try just by clicking on it.

    If you are just by clicking on it, and it includes only, something is wrong.

    The following is a general list of things you can try when the question is not in a specific file (you tried/made some of them already). 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    (1) close Illy and open again.

    (2) restart the computer (you can do that up to 3 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible);

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) uninstall, run the vacuum cleaner tool (if you have CS3/CS4/CS5/CS6/CC), and then reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • How to change the menu colors when you use the menu widget?

    So I inserted a menu using the menu widget, but how can I change the background colors? at this time is grey

    To change the background color of the item of a menu, simply select the Menu item (by clicking on the Menu twice) and change the color using the options of filling for the different States. If you change selection set in the options list, the color would be changed for all menu items.

    Thank you

    Vinayak

  • How to load the opencard.properties when you use OpenCardFramework as a Jar?

    Hello

    I use the OpenCardFramework as a plug-in in eclipse project, when the other project to use, the opencard.properties is not found.
    So I put the opencard.properties file in the [java.home]/lib/opencard.properties folder, it works.]

    But I want to put opencard.properties file in another project, then how to load the file.

    Thanks in advance!

    CardTerminals.waitForChange
    CardTerminal.waitForCardPresent
    CardTerminal.waitForCardAbsent

Maybe you are looking for

  • Node of automation is much more difficult to 'uncheck' than to 'create '.

    I use logical X about 5 months now, and I felt a fairly frustrating relationship with interaction of automation.  When I load automation, 'creation' of a knot of automation is simple... 1. click anywhere along the yellow line creates a node that is p

  • Compaq Presario cq57 admin help

    Ive forgot the admin password and after trying to enter several times my screen now says SYSTEM DISABLED (91586009)CAN SOMEONE HELP ME PLEASE IN MY LAPTOP

  • Play Waveform

    Dear all, I'm trying to generate a number of different signals through playwaveform Subvi. He works with me, but the problem is in the sound I hear is not continuous. Attached to the VI (LabVIEW 2011, Windows 7). I appreciate your help

  • SharePoint 2007 mysite problem

    Hello I use the Intranet site that built by sharePoint server 2007, and I created a Mysite and used before. But today, when I try to cick mysite, this message appeared "Explorer cannot display the webpage". I checked IIS restart MySite and AppPool as

  • Replacement media sets

    Anyone know how I can get my hands on CD media for 4.0 (1) of the replacement unit? I am based near Manchester U.K. Thank you Andy