Okay some progress (feeling like a proper moron today)
Installed Scribus 1.5.2
Have test document on my desktop (ScribusTest.sla)
Have create test python script (to-pdf.py) on my desktop
…from example here
https://wiki.scribus.net/canvas/Command_line_scripts#Example_of_command_line_script_without_arguments_______________________
# Produces a PDF for the SLA passed as a parameter.
# Uses the same file name and replaces the .sla extension with .pdf
#
# usage:
# scribus -g -py to-pdf.py file.sla
import os
if scribus.haveDoc() :
filename = os.path.splitext(scribus.getDocName())[0]
pdf = scribus.PDFfile()
pdf.file = filename+".pdf"
pdf.save()
else :
print("No file open")
_______________________run the proposed command (with your suggested addition)
/Applications/Scribus.app/Contents/MacOS/Scribus -g -py to-pdf.py ScribusTest.sla
--get following error in command line…
Python script to-pdf.py does not exist, aborting.
Should I be putting the python scripts in a specific location
or specifying the path to the script in the statement?
Apologies again for newbie mistakes/misconceptions…