Copy link to clipboard
Copied
In my document, I have 3 lines of text. Each line is using a different paragraph style: (Line 1, Line 2, Line 3). I am wondering if it's possible to copy 3 unformatted lines of text (from a Word doc) and paste them into my document, and have InDesign apply to 3 paragraph styles automatically.
I vaguely recall a feature that allowed us link together different paragraph styles (e.g. Line 1 = paragraph style A; Line 2 = paragraph style B, etc) but can't find it anymore.
Sample image of the text attached.
Thanks!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Put your cursor anywhere in the first paragraph, and run this simple javascript (sure, check your style names first. I used Line 1, Line 2, Line 3). If your text frame begins with those 3 paras, it's enough to just select that text frame, and run the script.
mySel=app.selection[0];
p = mySel.paragraphs[0]; p.appliedParagraphStyle="Line 1";
p = p.insertionPoints[-1].paragraphs[0]; p.appliedParagraphStyle="Line 2";
p = p.insertionPoints[-1].paragraphs[0]; p.appliedParagraphStyle="Line 3";