[scribus] python script result
Gregory Pittman
gpittman at iglou.com
Tue Apr 20 23:00:56 UTC 2021
On 4/20/21 5:15 PM, JLuc wrote:
> Hello,
>
> I'd like to use the page count of a document in a shell script (linux)
> A python script can access that count with `scribus.pageCount()`
>
> How can scribus script can output this as a string,
> so it's used in a shell script afterward ?
>
Hi JLuc,
I would say just experiment.
If a Scribus script writes to a file, what does a shell script say when it reads the file?
You could write the python so that it saves str(value), though when the shell script reads the file, that may not make any difference.
On the other hand, when python reads a file, it reads numbers as strings, so you have to convert to use them as a number in python.
Greg
More information about the scribus
mailing list