[scribus] Print a page from script
scribus at benjamin-dumke.de
Mon Jun 8 07:18:52 CEST 2009
"print" is a reserved word in Python 2, which is why you get the syntax
error. Here's how it seems to be supposed to work (I didn't try it, I
just checked a few things the scribus python console):
myprinter.pages = [1,2,7]
Hope that helps.
> Dear almighty All!
> Can someone, please, help me with a simple task: to print a certain page
> from script? It seems that i work out everything from a Scripter FAQ and
> wiki, Scribus mailing list (some guy resolving this problem in 2007 - but
> today those examples just didn't work), tried Scribus IRC-channel, tried
> every syntax variants i can imagine, but still can't get this done.
> I'm using Scribus 1.3.5 svn and in most cases get the syntax error.
> Something like this:
> SyntaxError: invalid syntax
> So.. please, help me write a simple script for printing. And - if this is
> possible - i will post it on wiki.
> WBR, Eugene.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.scribus.net/pipermail/scribus/attachments/20090608/b04a7fa4/attachment.htm>
> scribus mailing list
> scribus at lists.scribus.net
More information about the scribus