Quantcast

Creativebits.org

an All Creative World site
msankar.ravi's picture
8 pencils

find paragraph content

In Indesign if i have one text frame i want to display first pargraph content and last paragraph content.

if i have more than one text frame i want to dispaly the First text frame paragraph content and last text frame paragraph content.

Commenting on this Forum topic is closed.

KellyR's picture
520 pencils

? I'm sorry, I don't understand the question. :/

3dogmama's picture
1994 pencils

I don't understand the question either, but I am liking the Hawaiian shirts on the avatars!

Whoo Hoo...a lot better design, Ivan.

Cheers
3dog

"Art -- the one achievement of Man which has made the long trip up from all fours seem well advised." - James Thurber

999Graffix's picture
11 pencils

Are you talking about linking the text boxes?

msankar.ravi's picture
8 pencils

Thanks for your response. i am talking about. in my indesign file i have one page and one textFrame that contains more than one paragraph. i want to display First paragraph(starting line para). and i want to display Last paragraph(Ending Line para).

That i can able to do. my problem is if i have one page with three textframe. i want to display first textframe content and third textframe content

Here i attached the code that is working single text frame.

var myDoc = app.activeDocument;
var myTextFrame = app.selection[0];
var firstPar = myTextFrame.paragraphs[0];
var firstChar = myTextFrame.characters[0].contents;
var visibleParagraphContents = myTextFrame.paragraphs[0].contents.substring (firstChar.index - firstPar.index);

alert(app.selection[0].constructor.name)
alert ("First Paragraph content :"+"\n" + visibleParagraphContents);
alert ( "Last Paragraph content : " + "\n"+ myTextFrame.paragraphs.lastItem().contents);

10thWay's picture
47 pencils

Sorry, but I don't understand, what are you trying to achieve?

Brochure Printing by 10th Way

msankar.ravi's picture
8 pencils

In my indesign document if recto page i have indent i want to display the paragraph content of next ortho page starting line. that means i have two pages 2 page(recto) contains indent i want to display the paragraph begining content in 3rd page(ortho)

Chez A's picture
89 pencils

Javascript on InDesign ... are you serious?

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

  • Butterfingers ad campaign
  • Critique for my logo

Marketplace