Help with filename

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Help with filename

Postby nikolas1612 » Mon Jun 01, 2015 4:12 am

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with filename

Postby DataMystic Support » Tue Jun 02, 2015 2:33 pm

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

?
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

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

Re: Help with filename

Postby nikolas1612 » Tue Jun 02, 2015 3:29 pm

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with filename

Postby DataMystic Support » Tue Jun 02, 2015 4:18 pm

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

?
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

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

Re: Help with filename

Postby nikolas1612 » Tue Jun 02, 2015 5:04 pm

that'll be even better. thank you


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 4 guests