Slice the first few paragraphs of a string so that you can use to replace text in the other textframe

Hi all

What I'm trying to do is to replace the text image 1 with text in text image 2, but before I do,.

I need to extract a few paragraphs of text image 2 and remove the rest that I don't need.

I came across String.slice method, but I know that charges refers to the characters.

I wonder if I want only the first 3 paragraphs, what is the best way to do it?

Thank you very much!

You can try this:

textFrame1.insertionPoints [0].parentStory.paragraphs.itemByRange (0.2) .duplicate (LocationOptions.AFTER, textFrame2.insertionPoints [0]);

textFrame1.remove ();

Let me know if you need more assistance.

Michael

Tags: InDesign

Similar Questions

Maybe you are looking for

  • You guys do beg to get answers for support, pathetic!

    Lack of direct support for most of the sites Web is extremely common! No phone number, no window chat, forms of submisson only like that of the companies that have the resources to provide better or live support. That it becomes a joke. Loyal Firefox

  • FF does not show the latest version of a Web site, is to explore. Where can I change this option?

    Please check www.megasound.dk in FF, then in Solution Explorer. Explore version is recent and correct version. The version of FF is an older version. Is there an option in FF, "show the latest version of a Web site?How to solve this problem?BRSalinan

  • Change of HEX to Octal strings

    The string that show Hex, I want to change it to Octal data. How to do?

  • G11 keyboard and mouse G9

    Hello I have a DELL Inspiron 1720, G11 keyboard, mouse G9 and vista32 home.  Every now and then some programs or games freeze.  If I unplug the keyboard and mouse and their connection back (USB) program work impeccably.  All the drivers are up to dat

  • PROBLEM! Cannot view wireless networks!

    Hi, I am currently running Win 7 Ultimate 64 bit on my office and cannot view wireless networks! I tried to use two wireless adapters and both show active although they cannot show all networks. LAN works perfectly well and when I try to add a wirele