<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Individual paragraph styling</title>
    <link>https://forums.adobe.com/community/indesign/indesign_scripting?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 23 Oct 2013 14:45:08 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2013-10-23T14:45:08Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Individual paragraph styling</title>
      <link>https://forums.adobe.com/message/5782104?tstart=0#5782104</link>
      <description>&lt;!-- [DocumentBodyStart:6db70ca6-8598-4f45-b648-68c51b858589] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Jarek,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! That was the solution I needed.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dan&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6db70ca6-8598-4f45-b648-68c51b858589] --&gt;&lt;img src='/beacon?t=1415905874321' /&gt;</description>
      <pubDate>Wed, 23 Oct 2013 14:45:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5782104?tstart=0#5782104</guid>
      <dc:date>2013-10-23T14:45:08Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Individual paragraph styling</title>
      <link>https://forums.adobe.com/message/5781579?tstart=0#5781579</link>
      <description>&lt;!-- [DocumentBodyStart:0a56714e-0159-4de2-8181-5d9f0ce2c8d2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1st at all - you can modify "pointSize" and "leading" property of various text objects &lt;/p&gt;&lt;p&gt;(i.e. word, line, paragraph, paragraphStyle) but modifying paragraphStyle you modify every part of text where this style is applied at the same time.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So the solution is to modify &lt;span style="color: #ff0000;"&gt;paragraph.leading&lt;/span&gt; instead of &lt;span style="color: #ff0000;"&gt;paragraph.appliedParagraphStyle.leading&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000;"&gt;2nd - you could use Find...Change utility to reach a goal, since last paragraph of story is reached when you fill&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff0000;"&gt;.+\Z &lt;/span&gt;&lt;span style="color: #000000; font-size: 14px;"&gt;into Find Grep field.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000; font-size: 14px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000;"&gt;(change particular format properties in &lt;span style="color: #000000;"&gt;Grep&lt;/span&gt; "ChangeTo" part of dialog.)&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000;"&gt;Jarek&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0a56714e-0159-4de2-8181-5d9f0ce2c8d2] --&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:28:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5781579?tstart=0#5781579</guid>
      <dc:date>2013-10-23T11:28:09Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Individual paragraph styling</title>
      <link>https://forums.adobe.com/message/5781025?tstart=0#5781025</link>
      <description>&lt;!-- [DocumentBodyStart:3c73565a-ae7d-43b9-abc5-6189c7cc77b4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Dan,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please use this below code, may it will be helpful;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:255257c6-929a-43bb-aa00-64548c5abae1][excluded]--&gt;&lt;pre class="java" name="code"&gt;
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)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("POEM style does not exit")
&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(0);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

var myFound = myDoc.findText()

//~ alert(myFound.length);


for(i=myFound.length-1; i&amp;gt;=0; i--)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; myFound[i].leading = "10.5"
&amp;nbsp;&amp;nbsp;&amp;nbsp; myFound[i].pointSize = "10"
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/pre&gt;&lt;!--[CodeBlockEnd:255257c6-929a-43bb-aa00-64548c5abae1]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Beginner_X&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3c73565a-ae7d-43b9-abc5-6189c7cc77b4] --&gt;</description>
      <pubDate>Wed, 23 Oct 2013 04:29:23 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5781025?tstart=0#5781025</guid>
      <dc:date>2013-10-23T04:29:23Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Individual paragraph styling</title>
      <link>https://forums.adobe.com/message/5780925?tstart=0#5780925</link>
      <description>&lt;!-- [DocumentBodyStart:0b38ac53-eaa6-48d5-aef7-9675cdf771be] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;In a loop, I am inserting a number of paragraphs into a text frame. Here is part of the code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;paragraph = story.paragraphs.lastItem();&lt;/p&gt;&lt;p&gt;paragraph.applyParagraphStyle(myDoc.paragraphStyles.item("Poem"), false);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;with (paragraph.appliedParagraphStyle) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; leading = "10.5pt";&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointSize = "10.0pt";&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the paragraph styles catalog for the document, there is a style defined called "Poem". For each paragraph inserted into the text frame, I want it to have all the properties of the catalog style "Poem" except that I want to change its point size and leading. Shown above I have hard-coded them to be "10.5pt" and "10.0pt" respectively, but in actual fact there are different values for each paragraph. I don't want the paragraphs to get their point size and leading from the paragraph styles catalog.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The above code is not working. How should I be applying individual paragraph styling that is different from the paragraph styles catalog?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0b38ac53-eaa6-48d5-aef7-9675cdf771be] --&gt;</description>
      <pubDate>Wed, 23 Oct 2013 02:27:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5780925?tstart=0#5780925</guid>
      <dc:date>2013-10-23T02:27:56Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

