Page 1 of 1

Help with filename

Posted: Mon Jun 01, 2015 4:12 am
by nikolas1612
Tried to start my filename by date in this format: 2015.03.15 (instead of 20150315 allowed by @date variable).
Yet all of my attempts have failed.

Will be grateful for any help.

Re: Help with filename

Posted: Tue Jun 02, 2015 2:33 pm
by DataMystic Support
How did you try and do this? Not sure if you can, but can you use a subfilter of the split filename filter to split the numbers out into 3 variables e.g.
(\d{4})(\d{2})(\d{2})

?

Re: Help with filename

Posted: Tue Jun 02, 2015 3:29 pm
by nikolas1612
It seems I cannot as there are no numbers to split. To make this format - 2015.03.18 - I've got to somehow process the result given by @date. Yet I've found in this forum that the name of the final output is defined at the very start of the job.
As far as I can see, at present the only way to achieve my goal is to make TP launch itself two times in a row as a third-party program.

So I've got the following suggestion:
It seems natural to replace the in-built macroes @date and @time by their constituent parts
@year @month @date @hour @minute @second.
With this approach handling date becomes far more flexible.

Re: Help with filename

Posted: Tue Jun 02, 2015 4:18 pm
by DataMystic Support
Agreed. I just don't want it to conflict with existing definitions that people might have for those common names.

How about
@_year @_month @_date @_hour @_minute @_second

?

Re: Help with filename

Posted: Tue Jun 02, 2015 5:04 pm
by nikolas1612
that'll be even better. thank you