[scribus] scribus script to write current document name
gregp_ky at yahoo.com
Fri Dec 10 01:41:12 CET 2010
On 12/09/2010 03:08 PM, michael biggs wrote:
> I am looking for some help writing a simple script.
> With scribus running and a document open, the script will simply create a text box on a page of the open document, and then write the name of the document into the text box.
> What python command can I use to automatically get the name of the currently open document?
> All I've been able to get so far is the name of the python script that I run from the document.
The short answer is that this does not exist.
The longer experimental answer would be to set up a fileDialog something
myfilename = scribus.fileDialog('My File Name', 'SLA files (*.sla)')
which should at least bring up a way to find the SLA filename, and load
its name into myfilename, for you to use for your text frame.
More information about the scribus