Find textframe pagebreak and parent

Here is my code, I get the error to find content and I need the text frame parent 'PageBreak '?

var doc = app.activeDocument;

var Frame = doc.allPageItems;

var plength = doc.pages.length;

for (var i = 0; i < Frame.length; i ++)

{

If (framework [i] instanceof TextFrame)

{

app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

app.findGrepPreferences.findWhat = "~ P";

var finds is Frame [i] .findGrep ();.

$.writeln (found.length)

If (found. Length > 0)

{

If (.silence Frame [i] > 10)

{

Some functions

}

}

}

}

Can anyone help on this?

Hello

In addition Ronald correction:

There is no need to browse pageItems all the doc - filter management related texts - involved thisFrame.findGrep () separately.

Simply call

found = doc.findGrep ();

and iterate over the results table (found) to check

[i] Trouve.parenttextframes.length / / text is overset don't: no mother

found [i].contents.length .parentTextFrames [0] / / some functions

Jarek

Tags: InDesign

Similar Questions

  • How to find children and parent of a resource in the HQU

    How to find children and parents of a resource in the HQU?
    for example, there is a server, how can I find all its services and its platform?

    by the way, where can I get a full HQU API doc? There is no description in detail in the Documentation of HQU:http://support.hyperic.com/display/hypcomm/HQU+Documentation

    Hello

    You can use the ResourceCategory.getPlatform () method to get the parent platform and you can use Resource.getViewableChildren () to the children. Here is a very basic example which comes out in the server.log:

    import org.hyperic.hq.hqu.rendit.metaclass.ResourceCategory
    import org.hyperic.hq.hqu.rendit.helpers.ResourceHelper
    imports org.hyperic.hq.authz.server.session.AuthzSubjectManagerEJBImpl AuthzMan

    def authzMan = AuthzMan.one
    def Overlord = authzMan.overlordPojo
    def rHelper = new ResourceHelper (overlord)

    def resource = rHelper.find (server: 12226)

    println ("" Resource: "+ resource.name +" is a child of ' + ResourceCategory.getPlatform (resource) .name + "and has children:" ")
    resource.getViewableChildren (overlord) .every child {-->
    println (child.name + "\n")
    }

    As far as documentation goes, what you see on this page is all that is available at this time. I use the code source HQApi as reference when I can't find anything in the docs.

  • Find bookmarks, urls and history double

    On Mac, Firefox version 14.0.1, which is the best add-on/app to find bookmarks, URLS and double-story? Thank you!

    Try this extension:

  • If I change a file name in my ITunes library, iTunes will find changed leadership and play the song?

    I'm trying to back up my iTunes files, but my classical music has too long file names?  If I abbreviate the names of file, iTunes will find these files and play the songs? Also, what is the best way to change a name of file to an album at the same time?

    I'm not as familiar with the Windows platform, but if your main drive and the system supports file names that are long which is why your backup drive? You use a different format on your backup disk?

  • Toshiba 40TL938G - find the date and time settings

    I have a 40TL938G and I can't find the date and time settings.
    Can someone help me?

    SSY
    I read the manual and it does ' t say anything about these settings.

    THX

    In the settings of digital television, you should see the option called local time settings

    To display the time on the TV you press the sign of the small clock on the remote control while watching a normal TV show (analog only)

  • Bought a second hand iphone 5 and my seller did not remove device to find my iphone and im too poor to buy a fresh iphone and my country does not have a retail store, so how do I get it removed icloud? Its imei is *.

    Bought a second hand iphone 5 and my seller did not remove device to find my iphone and im too poor to buy a fresh iphone and my country does not have a retail store, so how do I get it removed icloud? Its imei is *.

    Nobody here can help, and Apple will not help you to overcome the blocking of activation.  If the seller does not cooperate and remove the unit from their iCloud account, then you will never be able to use this device yourself.

    See disable find my iPhone Activation Lock - Apple Support

  • How to find corrupted files and remove them on mac i

    How to find corrupted files and remove them on i mac?  AM currently using OS x EL capitan 10.11.12 Mac said to run slowly and the recent upload did not work until the 3rd attempt.

    Thank you

    You do not have.

    You can run this program and post the results so that we can see what you have installed that could cause your problems.

    http://www.etresoft.com/etrecheck

  • Management of user accounts and Parental control in Windows 8

    Hello

    I'll post a thread on how to manage the user accounts and Parental control in Windows 8.

    A user account allows you to connect to Windows 8. By default, your computer already has a user account that you have been
    needed to create when you configure Windows 8. If you want to share your computer, you can create a separate for each Member of your household or office user account. You can also choose to associate any user account with a Microsoft account. Signature with a Microsoft account will bring all your SkyDrive files, contacts and more in the start screen. You can even connect to another computer that has Windows 8 and all your important files will be there.

    Here is a video on how to manage the user accounts and Parental control in Windows 8.

    Also, here is a document showing you how to manager Our user on Windows 8.

    If you have any questions let me know.

    THX

    I hope it's useful.

    THX

  • Find the Center and angle

    Hello. I have two markers. It is stationary and the other is moving (app.jpg). How can I find the centers and angles shown in picture (app.jpg)?


  • How to find the utilities and windows drivers VGN-CR36G 8?

    Hello

    I use laptop Vaio VGN-CR36G with vista ultimate. Now, I want to install windows 8 enterprise edition.

    But I can't find the drivers and utilities on the site of sony vaio.

    But my product is compatible for windows 8 OS.

    Here is the link below:

    http://www.Sony-Asia.com/support/product/VGN-CR36G

    Can someone please help me to download all drivers and software?

    Thank you

    Hi Whiteeasy.

    This model does not support Windows 8 operating system which you can confirm from the link below.

    http://www.Sony-Asia.com/microsite/VAIO/support/GetWindows8/GetWindows8_EN_NA.html?referer=http%3A%2...

    If my post answered your question, please mark it as an "accepted Solution".

  • How to find the Maxima and Minima for each column of a 2D array?

    Hello

    I have a 2D chart and I would find the maxima and minima of each column of the 2-D table. Even though I know how to get maxima and minima for the whole picture but don't know how columnwise? Any ideas please?

    Thank you

    Rohit

    Hello

    @Smercurio-What you said is true, I should have shown using automatic indexing enabled which is really excellent choice. I just tried to show in a very simple way.

    Anyway, here's the best way

  • How to find the maximum and minimum of a waveform between cursors

    Hello!

    Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?

    Kind regards

    Andreas

    Hi Andreas,

    attached, you get an example of it in MeasurementStudio.

  • How can I find MSVCR71.dll and how to download MSVCR71.dll on my computer?

    How can I find MSVCR71.dll and how to download MSVCR71.dll on my computer?

    If I use the sites in this search, it will download another unwanted SW (spy, etc.) with the DLL file?

    It's almost a universal recommendation that not download you file DLL download sites. Many, if not most of these sites are created to support a useless program as a tuneup program, registry cleaner, etc.

    Is MSVCR71. DLL.3 a typo? I found MSVCR71. DLL on 2 computers, but not MSVCR71. DLL.3 (with le.3)

    This DLL seems to be part of .NET (dot net) when you access Windows Update, updates Dot Net Framework listed as recommended downloads?

    The DLL can be installed, but not saved. Follow the instructions in tha to

    http://support.Microsoft.com/kb/175775#method5 (method 5 - re-register necessary...)

    Re-register with the command regsvr32 msvcr71.dll msvcr71.dll

    Don

  • I lost all my folders and files from all contexts of my. Is there a way I can find my file and contects and transfer them to my new email address?

    folder and transfer contects

    Some used body my e-mail and now I have to create a new account. I lost all my folders and files all my contects.is there anyway I can find my file and contects and transfer them to my e.mail new address, I am one who is suffring now .i should add every thing from the bigning.i had this acct almost 10 years.

    If you use Outlook Express, then locate the *.wab computer.  If this is not the case, then you must be specific to the subject what email program you use, and what form of e-mail account you have and what operating system you are using, as your questions depend on this, and we have no idea if not.

    Steve

  • Cocomputer cannot find the printer and I do not have a disk for it

    Original title: printer SUPPORT

    my computer cannot find the printer and I do not have a disk for it

    Then, download and install the appropriate drivers on the printer manufacturer's support web site.

Maybe you are looking for

  • 'On this day' feature for pictures of mac, it exists?

    Hello I like the feature of Facebook "on this day" but would like to have on my mac instead of downloading my collection of entire photo on FB for this to work over one year, etc.. Does anyone know how to reproduce it in a script, 3rd party app etc.?

  • WINDOWS XP3 unavailable to replace WGAN said imitations.

    It seems that MS have abandoned the manufacture of XP3, told by one of their local/regional office. They have no stocks. But the software is awailable with dealers / stores sharpened. What guarantee we have when we buy them, or, history is repeating

  • black screen in Internet Explorer

    PC opens without fault, but the attempt to access Internet Explorer gets met with black screen, UNLESS I have "Start without Add-ons. Homepage is Google, but was no problem until lately. Help!

  • Help black screen Alienware

    Well when I start my computer it's an Alienware aurora R3 it lights the screen Alienware appears and then the screen turns black as it tries to load it flashes once and then goes black again and he has a slider to score in the upper left corner. I tr

  • Problem with the browser blackBerry Smartphones.

    Hello I have a problem with my Bold 9700... Open dosent browser if I click the icon and there is no problem with the other. I tried to reinstall the software, updated the OS, but I'm unable to solve the same. Shortly after installation, it will work