<div dir="ltr"><div class="gmail_default" style="font-size:small"># Apply style<br>def applyStyle(style,frame):<br>    '''Apply a style in selected text.  <br>    If style doesn't exist, create it.'''<br>

    try:<br>        scribus.setStyle(style,frame)<br>    except:<br>        scribus.createParagraphStyle(name=style,leftmargin=indent,firstindent=(indent*-1))<br>        scribus.setStyle(style,frame)<br>    return frame<br>

<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/29 José Antonio Rocha <span dir="ltr"><<a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small"># "Default Character Style" character style
<br>scribus.createCharStyle(name=u'Default Character Style',font='Liberation Serif Regular',fontsize=12,features='inherit',fillcolor='Black',fillshade=1,strokecolor='Black',strokeshade=1,baselineoffset=0,shadowxoffset=0,shadowyoffset=0,outlinewidth=0,underlineoffset=0,underlinewidth=0,strikethruoffset=0,strikethruwidth=0,scaleh=1,scalev=1,tracking=0,language='Portuguese (BR)')
<br><br># "Default Paragraph Style" paragraph style <br>scribus.createParagraphStyle(name=u'Default Paragraph Style',linespacingmode=2,linespacing=14.17,alignment=3,leftmargin=0,rightmargin=0,gapbefore=0,gapafter=0,firstindent=12,hasdropcap=0,dropcaplines=2,dropcapoffset=0,charstyle='Default Character Style') <br>


<br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">2013/3/28 David Cohen <span dir="ltr"><<a href="mailto:dgcohen61430@hotmail.com" target="_blank">dgcohen61430@hotmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If this is a duplicate please disregard.I am trying to write a script that will identify a text box by its pre-defined content and apply a paragraph style. I have no problem locating the desired text box, but cannot find the syntax to apply the named paragraph style using its name in properties dialog. I have been doing this manually but have many instances and a script would be a time saver.Thanks for any <a href="mailto:guidance.dgcohen61430@hotmail.com" target="_blank">guidance.dgcohen61430@hotmail.com</a><br>



-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20130329/a6d37f2a/attachment.html" target="_blank">http://lists.scribus.net/pipermail/scribus/attachments/20130329/a6d37f2a/attachment.html</a>><br>



___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net" target="_blank">scribus@lists.scribus.net</a><br>
Edit your options or unsubscribe:<br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus</a><br>
See also:<br>
<a href="http://wiki.scribus.net" target="_blank">http://wiki.scribus.net</a><br>
<a href="http://forums.scribus.net" target="_blank">http://forums.scribus.net</a><br>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>
<font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font size="1"><font><img style="width:75px;min-height:100px" alt="Meira" src="http://lh4.ggpht.com/_75EesisxR5g/TENbAQVXMLI/AAAAAAAADHs/ChNQzn8eOT0/meira-75x100.jpg" align="left" hspace="8" vspace="6"></font></font></font></font><hr>



</font><span style="font-family:Helvetica,Arial,sans-serif">nome: "</span><span style="font-weight:bold;font-family:Helvetica,Arial,sans-serif">José Antonio Meira da Rocha</span><span style="font-family:Helvetica,Arial,sans-serif">" </span><br style="font-family:Helvetica,Arial,sans-serif">




<small style="font-family:Helvetica,Arial,sans-serif">googletalk: email: MSN: <a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a><br>
veículo: [ <a href="http://meiradarocha.jor.br/" target="_blank">http://meiradarocha.jor.br</a>
] <br>fones: <a href="tel:55-8411-3047" value="+555584113047" target="_blank">55-8411-3047</a> / <a href="tel:55-3744-2994" value="+555537442994" target="_blank">55-3744-2994</a><br></small>
<hr style="width:100%;min-height:2px;font-family:Helvetica,Arial,sans-serif">

</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>
<font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font size="1"><font><img style="width:75px;min-height:100px" alt="Meira" src="http://lh4.ggpht.com/_75EesisxR5g/TENbAQVXMLI/AAAAAAAADHs/ChNQzn8eOT0/meira-75x100.jpg" hspace="8" vspace="6" align="left"></font></font></font></font><hr>


</font><span style="font-family:Helvetica,Arial,sans-serif">nome: "</span><span style="font-weight:bold;font-family:Helvetica,Arial,sans-serif">José Antonio Meira da Rocha</span><span style="font-family:Helvetica,Arial,sans-serif">" </span><br style="font-family:Helvetica,Arial,sans-serif">



<small style="font-family:Helvetica,Arial,sans-serif">googletalk: email: MSN: <a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a><br>
veículo: [ <a href="http://meiradarocha.jor.br/" target="_blank">http://meiradarocha.jor.br</a>
] <br>fones: 55-8411-3047 / 55-3744-2994<br></small>
<hr style="width:100%;height:2px;font-family:Helvetica,Arial,sans-serif">

</div>