Help with filename

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

Help with filename

Post 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.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with filename

Post 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})

?
nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

Re: Help with filename

Post 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.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with filename

Post 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

?
nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

Re: Help with filename

Post by nikolas1612 »

that'll be even better. thank you
Post Reply