In LO calc, I have a simple macro to export a single sheet to a .pdf file. This export line works:
oDoc.storeToURL(“file:///home/username/Desktop/Spreadsheets/test.pdf”,
aMediaDescriptor())
But I need to append the current simple date to the filename, trying this:
oDoc.storeToURL(“file:///home/monty/Desktop/Spreadsheets/test’$(date
+%Y-%m-%d)’.pdf”, aMediaDescriptor())
That saves the filename literally as:
test’$(date +%Y-%m-%d)’.pdf
I have tried various combinations of parenthesis and quotes but am missing something!
Thanks!