[scribus] scribus script to write current document name

michael biggs mjbiggs at hotmail.com
Sun Dec 12 10:18:13 CET 2010


Hello José

that is an excellent solution - exactly what I was seeking.

have tried it and it works.

great to know about listing undocumented functions via Scripter Console too.

thanks very much

Mike




> From: joseantoniorocha at gmail.com
> Date: Sat, 11 Dec 2010 23:41:32 -0200
> To: scribus at lists.scribus.net
> Subject: Re: [scribus] scribus script to write current document name
> 
> 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>
> _______________________________________________
> scribus mailing list
> scribus at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20101212/71b75784/attachment.htm>


More information about the scribus mailing list