Scribus Forums

Scribus => Scripts and Plugins => Topic started by: skhullar on February 29, 2024, 09:00:23 AM

Title: Sample scripts and plugin
Post by: skhullar on February 29, 2024, 09:00:23 AM
Hi Team

Just started here. Need help.
Need some sample scripts and plugin to start understanding how they work
And where can we get documentation to create some of our own

Thanks

Sunil
 
Title: Re: Sample scripts and plugin
Post by: a.l.e on February 29, 2024, 09:21:26 AM
this is my collection of scribus scripts:

https://github.com/aoloe/scribus-script-repository

the most recent ones contains best practices that i consider to be better : - )

when you open the scribus help, in the "for developers" section you have some help for creating scripts.

personally, i tend to use the web version i have created:

https://impagina.org/scribus-scripter-api/
Title: Re: Sample scripts and plugin
Post by: skhullar on February 29, 2024, 12:03:12 PM
Baby step 1
Trying to run To_PDF defined in https://wiki.scribus.net/canvas/Command_line_scripts
but its not working (Windows)

using command line - "c:\Program Files\Scribus 1.6.1\Scribus.exe" -g -py d:\bat\to-pdf.py d:/tmp/test/scribus-test/1.sla

What am I missing here?

thanks

Sunil
Title: Re: Sample scripts and plugin
Post by: a.l.e on February 29, 2024, 03:12:09 PM
you probably need a -- before the .sla file name:

"c:\Program Files\Scribus 1.6.1\Scribus.exe" -g -py d:\bat\to-pdf.py -- d:/tmp/test/scribus-test/1.sla
Title: Re: Sample scripts and plugin
Post by: skhullar on March 01, 2024, 05:45:49 AM
Cool, it worked
Thanks ale