[scribus] scribus script to write current document name

José Antonio Rocha joseantoniorocha at gmail.com
Sun Dec 12 02:41:32 CET 2010


The code that do what you want:*

docName = scribus.getDocName()
**nameBox = scribus.createText(x, y, w, h)
scribus.setText(docName,nameBox)*

Em 11 de dezembro de 2010 21:55, José Antonio Rocha <
joseantoniorocha at gmail.com> escreveu:

> **
>
> You can hack around new and undocumented functions listing it in Scripter
> console:
>
> *dir() *
>
> and key [F9]
>
> 2010/12/9 michael biggs <mjbiggs at hotmail.com>
>
>
>> Hello
>>
>> I am looking for some help writing a simple script.
>>
>> 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.
>>
>> What python command can I use to automatically get the name of the
>> currently open document?
>>
>> All I've been able to get so far is the name of the python script that I
>> run from the document.
>>
>> Any help appreciated.
>>
>> Thanks
>>
>> Mike
>>
>>
>>
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.scribus.net/pipermail/scribus/attachments/20101209/8daf68af/attachment.htm
>> >
>> _______________________________________________
>> scribus mailing list
>> scribus at lists.scribus.net
>> http://lists.scribus.net/mailman/listinfo/scribus
>>
>
>
>
> --
> ------------------------------
> [image: Meira]nome: "José Antonio Meira da Rocha"  tratamento: "Prof. MS."
> cargo: "Coordenador do Curso de Relações Públicas Multimídia"
> ies: "CESNORS/Universidade Federal de Santa Maria"
> googletalk: email: MSN: joseantoniorocha at gmail.com
> ICQ: 658222 Skype: "meiradarocha_jor"
> veículo: [ http://meiradarocha.jor.br ]
> fone: (55) 9651-0686
> ------------------------------
>
>


-- 
------------------------------
[image: Meira]nome: "José Antonio Meira da Rocha"  tratamento: "Prof. MS."
cargo: "Coordenador do Curso de Relações Públicas Multimídia"
ies: "CESNORS/Universidade Federal de Santa Maria"
googletalk: email: MSN: joseantoniorocha at gmail.com
ICQ: 658222 Skype: "meiradarocha_jor"
veículo: [ http://meiradarocha.jor.br ]
fone: (55) 9651-0686
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20101211/89cdb7fb/attachment.htm>


More information about the scribus mailing list