Hello,
I have a workflow that collects more than a dozen types of letter documents (all with different file names) and batches and joins them into a single PDF output. These PDF files are then sent to a specified folder. I'd like to be able to change the single PDF file name to a static and generic output name and then concatenate the timestamp after that. Is this possible? Please send any suggestions. Thank you.
You could save the file using for instance:
some_name_$FFtimeStamp$
This will give you date and time down to milliseconds.
$FFtimeStamp$ can also be formatted. For instance:
some_name_$FFtimeStamp.Format(false,true,-,numpad,numpad,false, true)$
will give you the name:
some_name_02-24-2021 09-59-07.pdf
Please see Process Variable Options in the Help Guide.
Excellent. Thank you so much Stefan. Obviously, I've been over-thinking this. Appreciate the help.
According to the help guide 'timeStamp' is an unsupported variable for support variable operations. It doesn't appear that any manipulations I make (format, substring, etc.) changes the timeStamp variable. I'm wondering if there is a way to just add the current day, but not the time in the file name?
To exclude the time you can paste this line into a text file and save it to a batch file (.bat):
copy %1 "C:\Temp\filename_%date%.pdf"
Replace your Save node in the workflow with an External Process where you use the batch file.
I am using FFCore 6.0.2. When I define within the Save node the filename to be $FFwfJob.jobName$$FFtimeStamp.Format(false,true,-,numpad,numpad, false, false).substring(0,5)$, I obtain the filename (for job named "atlanta") of "atlanta02-26 .pdf".
This might be what the problem is. We'll need to update to 6.0.2. Thanks so much.