[Scribus] scripting with scribus

Gregory Pittman gpittman
Tue Jun 6 21:16:04 CEST 2006


Cornel Ghiban wrote:
> Hi,
>
> I see Scribus has scripting capabilities and this is a very nice
> thing. I have some things to do and Scribus seems to be the right
> tool. But I have some questions I didn't find the answer (at least not
> from the www.scribus.net) . Is it possible to do the following with
> python? :
>
> - open a master document (Doc_A)
> - select a directory from the disk and take every file(Doc_i)
> - copy all objects from Doc_i to Doc_A (at a certain position)
> - save Doc_A
>
>   
I don't think there is a way to do anything with Master Pages strictly 
with Scripter. On the other hand, one can create scripts that work on a 
pre-existing document.
One of the questions you might want to ask yourself is whether you want 
to do this with a script anyway. The python code for generically doing 
what you suggest would take some time to do. Better and easier might be 
to save objects from a particular document into the Scrapbook, then 
saving the Scrapbook as a file, which could then be loaded into a 
document. Different documents could have different Scrapbook files. In 
essence, you are saving Scribus objects, and as such they would have a 
particular position, size, etc., that would be saved with them and 
applied when they were loaded.
> Another thing: do you know a way to convert .eps files to .sla without
> opening Scribus?
>   
We're still waiting for the capability of using scribus on the command 
line, perhaps for this, but certainly many other tasks.

Greg



More information about the scribus mailing list