<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello José<br><br>that is an excellent solution - exactly what I was seeking.<br><br>have tried it and it works.<br><br>great to know about listing undocumented functions via Scripter Console too.<br><br>thanks very much<br><br>Mike<br><br><br><br><br>> From: joseantoniorocha@gmail.com<br>> Date: Sat, 11 Dec 2010 23:41:32 -0200<br>> To: scribus@lists.scribus.info<br>> Subject: Re: [scribus] scribus script to write current document name<br>> <br>> The code that do what you want:*<br>> <br>> docName = scribus.getDocName()<br>> **nameBox = scribus.createText(x, y, w, h)<br>> scribus.setText(docName,nameBox)*<br>> <br>> Em 11 de dezembro de 2010 21:55, José Antonio Rocha <<br>> joseantoniorocha@gmail.com> escreveu:<br>> <br>> > **<br>> ><br>> > You can hack around new and undocumented functions listing it in Scripter<br>> > console:<br>> ><br>> > *dir() *<br>> ><br>> > and key [F9]<br>> ><br>> > 2010/12/9 michael biggs <mjbiggs@hotmail.com><br>> ><br>> ><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<br>> >> text box on a page of the open document, and then write the name of the<br>> >> document into the text box.<br>> >><br>> >> What python command can I use to automatically get the name of the<br>> >> currently open document?<br>> >><br>> >> All I've been able to get so far is the name of the python script that I<br>> >> 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: <<br>> >> http://lists.scribus.info/pipermail/scribus/attachments/20101209/8daf68af/attachment.htm<br>> >> ><br>> >> _______________________________________________<br>> >> scribus mailing list<br>> >> scribus@lists.scribus.info<br>> >> http://lists.scribus.info/mailman/listinfo/scribus<br>> >><br>> ><br>> ><br>> ><br>> > --<br>> > ------------------------------<br>> > [image: Meira]nome: "José Antonio Meira da Rocha" tratamento: "Prof. MS."<br>> > cargo: "Coordenador do Curso de Relações Públicas Multimídia"<br>> > ies: "CESNORS/Universidade Federal de Santa Maria"<br>> > googletalk: email: MSN: joseantoniorocha@gmail.com<br>> > ICQ: 658222 Skype: "meiradarocha_jor"<br>> > veículo: [ http://meiradarocha.jor.br ]<br>> > fone: (55) 9651-0686<br>> > ------------------------------<br>> ><br>> ><br>> <br>> <br>> -- <br>> ------------------------------<br>> [image: Meira]nome: "José Antonio Meira da Rocha" tratamento: "Prof. MS."<br>> cargo: "Coordenador do Curso de Relações Públicas Multimídia"<br>> ies: "CESNORS/Universidade Federal de Santa Maria"<br>> googletalk: email: MSN: joseantoniorocha@gmail.com<br>> ICQ: 658222 Skype: "meiradarocha_jor"<br>> veículo: [ http://meiradarocha.jor.br ]<br>> fone: (55) 9651-0686<br>> ------------------------------<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <http://lists.scribus.info/pipermail/scribus/attachments/20101211/89cdb7fb/attachment.htm><br>> _______________________________________________<br>> scribus mailing list<br>> scribus@lists.scribus.info<br>> http://lists.scribus.info/mailman/listinfo/scribus<br>                                            </body>
</html>