find paragraph content
msankar.ravi (8 points) | Fri, 2009-07-31 11:27In 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.
? I'm sorry, I don't understand the question. :/
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
Are you talking about linking the text boxes?
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);
Sorry, but I don't understand, what are you trying to achieve?
Brochure Printing by 10th Way
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)
Javascript on InDesign ... are you serious?