This content has been marked as final.
Show 3 replies
-
1. Re: Individual paragraph styling
BEGINNER_X Oct 22, 2013 9:29 PM (in response to Dan-BTP)Hi Dan,
Please use this below code, may it will be helpful;
var myDoc = app.activeDocument; app.findTextPreferences = app.changeTextPreferences = null; app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points; app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points; try { app.findTextPreferences.appliedParagraphStyle = "POEM" } catch(e) { alert("POEM style does not exit") exit(0); } var myFound = myDoc.findText() //~ alert(myFound.length); for(i=myFound.length-1; i>=0; i--) { myFound[i].leading = "10.5" myFound[i].pointSize = "10" }Thanks
Beginner_X
-
2. Re: Individual paragraph styling
Jump_Over Oct 23, 2013 4:28 AM (in response to Dan-BTP)Hi,
1st at all - you can modify "pointSize" and "leading" property of various text objects
(i.e. word, line, paragraph, paragraphStyle) but modifying paragraphStyle you modify every part of text where this style is applied at the same time.
So the solution is to modify paragraph.leading instead of paragraph.appliedParagraphStyle.leading
2nd - you could use Find...Change utility to reach a goal, since last paragraph of story is reached when you fill
.+\Z into Find Grep field.
(change particular format properties in Grep "ChangeTo" part of dialog.)
Jarek
-
3. Re: Individual paragraph styling
Dan-BTP Oct 23, 2013 7:45 AM (in response to Jump_Over)Jarek,
Thanks! That was the solution I needed.
Dan


