[scribus] Automagical date?
Gregory Pittman
gpittman at iglou.com
Thu May 9 11:54:17 UTC 2013
On 05/09/2013 12:58 AM, "Christoph Schäfer" wrote:
>
>
>> Gesendet: Mittwoch, 08. Mai 2013 um 09:50 Uhr
>> Von: "Rolf-Werner Eilert" <eilert-sprachen at t-online.de>
>> An: scribus at lists.scribus.net
>> Betreff: Re: [scribus] Automagical date?
>>
>>
>>
>> Am 08.05.2013 09:43, schrieb Owen:
>>>
>>>> Hi,
>>>>
>>>> is there any way of producing an automagical date in a Scribus
>>>> document
>>>> such as "Version MM/YYYY"? I'm looking for something that is refreshed
>>>> whenever I print/make a PDF of the document.
>>>
>>>
>>>
>>>
>>> If I open a pdf in Ocular, then look at properties, it gives me the
>>> time of creation/modification. Perhaps that is all you need?
>>>
>>> But as to your original question, no, I don't think that can be
>>> automagically inserted.
>>>
>>>
>>>
>>>
>>
>> No, I don't need the file's creation date but some kind of variable
>> inserted in the text which leads to the date printed in some format into
>> the document as text and with the styles of that place.
>>
>> Thus the reader of the document, once printed, will see when the
>> document was last revised - and I don't have to remember to update this
>> thing each time I make a new pdf of the document ;-)
>>
It's easy to script this.
****begin script fragment
from datetime import date
today = date.today()
d = today.strftime("Version %m/%Y")
****end script fragment
d will be your string to insert somewhere in a text frame.
Greg
More information about the scribus
mailing list