<font style="font-family: arial,helvetica,sans-serif;" size="2">The code that do what you want:</font><b><font style="font-family: courier new,monospace;" size="2"><br><br><span style="font-family: courier new,monospace;">docName = </span></font><span style="font-family: courier new,monospace;">scribus.getDocName()<br>

</span></b><font style="font-family: courier new,monospace;" size="2"><b>nameBox = scribus.createText(x, y, w, h)<br>scribus.setText(docName,nameBox)</b><br></font><br><div class="gmail_quote">Em 11 de dezembro de 2010 21:55, José Antonio Rocha <span dir="ltr">&lt;<a href="mailto:joseantoniorocha@gmail.com">joseantoniorocha@gmail.com</a>&gt;</span> escreveu:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><b><span style="font-family: courier new,monospace;"></span></b><br><br>You can hack around new and undocumented functions listing it in Scripter console:<br>


<br><b><span style="font-family: courier new,monospace;">dir() </span></b><br><br>and key [F9]<br><br><div class="gmail_quote">2010/12/9 michael biggs <span dir="ltr">&lt;<a href="mailto:mjbiggs@hotmail.com" target="_blank">mjbiggs@hotmail.com</a>&gt;</span><div>

<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hello<br>
<br>
I am looking for some help writing a simple script.<br>
<br>
With scribus running and a document open, the script will simply create a text box on a page of the open document, and then write the name of the document into the text box.<br>
<br>
What python command can I use to automatically get the name of the currently open document?<br>
<br>
All I&#39;ve been able to get so far is the name of the python script that I run from the document.<br>
<br>
Any help appreciated.<br>
<br>
Thanks<br>
<br>
Mike<br>
<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.scribus.info/pipermail/scribus/attachments/20101209/8daf68af/attachment.htm" target="_blank">http://lists.scribus.info/pipermail/scribus/attachments/20101209/8daf68af/attachment.htm</a>&gt;<br>



_______________________________________________<br>
scribus mailing list<br>
<a href="mailto:scribus@lists.scribus.info" target="_blank">scribus@lists.scribus.info</a><br>
<a href="http://lists.scribus.info/mailman/listinfo/scribus" target="_blank">http://lists.scribus.info/mailman/listinfo/scribus</a><br>
</blockquote></div></div></div><br><br clear="all"><br>-- <br>
<font style="font-family: Helvetica,Arial,sans-serif;" color="#888888"><hr>
<font size="1"><font size="2"><img src="" style="width: 75px; min-height: 100px;" alt="Meira" align="left" hspace="8" vspace="6"></font></font></font><span style="font-family: Helvetica,Arial,sans-serif;">nome: &quot;</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;">&quot; 
tratamento: &quot;Prof. MS.&quot;</span><br style="font-family: Helvetica,Arial,sans-serif;">

<small style="font-family: Helvetica,Arial,sans-serif;">cargo: &quot;<span style="font-weight: bold;">Coordenador do Curso de
Relações Públicas Multimídia</span>&quot;<br>
ies: &quot;CESNORS/Universidade Federal de Santa Maria&quot;<br>
googletalk: email: MSN: <a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a><br>
ICQ: 658222 Skype: &quot;meiradarocha_jor&quot;<br>
veículo: [ <a href="http://meiradarocha.jor.br/" target="_blank">http://meiradarocha.jor.br</a>
] <br>fone: (55) 9651-0686<br></small>
<hr style="width: 100%; min-height: 2px; font-family: Helvetica,Arial,sans-serif;">
<br>
</blockquote></div><br><br clear="all"><br>-- <br>
<font style="font-family: Helvetica,Arial,sans-serif;" color="#888888"><hr>
<font size="1"><font size="2"><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><span style="font-family: Helvetica,Arial,sans-serif;">nome: &quot;</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;">&quot; 
tratamento: &quot;Prof. MS.&quot;</span><br style="font-family: Helvetica,Arial,sans-serif;">

<small style="font-family: Helvetica,Arial,sans-serif;">cargo: &quot;<span style="font-weight: bold;">Coordenador do Curso de
Relações Públicas Multimídia</span>&quot;<br>
ies: &quot;CESNORS/Universidade Federal de Santa Maria&quot;<br>
googletalk: email: MSN: <a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a><br>
ICQ: 658222 Skype: &quot;meiradarocha_jor&quot;<br>
veículo: [ <a href="http://meiradarocha.jor.br/" target="_blank">http://meiradarocha.jor.br</a>
] <br>fone: (55) 9651-0686<br></small>
<hr style="width: 100%; height: 2px; font-family: Helvetica,Arial,sans-serif;">
<br>