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.info/pipermail/scribus/attachments/20101209/8daf68af/attachment.htm >> > >> _______________________________________________ >> scribus mailing list >> scribus at lists.scribus.info >> http://lists.scribus.info/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.info/pipermail/scribus/attachments/20101211/89cdb7fb/attachment.htm>
