Dropped Lines
I Have two paragraph styles: poem (this blue one), and poem-drop (this red-one)
I want to apply leftIndents to all of my poem-drops equal to the length of the previous poem or poem-drop paragraphs.
HAMLET- Did you not speak to it?
MARCELLUS
- My lord!
I did;
- My lord!
- But answer made it none: yet once methought
- It lifted up its head and did address
- Itself to motion, like as it would speak;
So far I can only find the value of this indentation.
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = '\r';
app.findGrepPreferences.appliedParagraphStyle = 'poem';
var myFound = app.activeDocument.findGrep();
var i;
for (i = 0; i < myFound.length; i++) {
my_relative_indent = myFound.insertionPoints[0].horizontalOffset;
$.writeln(my_relative_indent);
}
Please give me a hint.