glob. variables within filename

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

glob. variables within filename

Postby nikolas1612 » Tue May 26, 2015 3:47 pm

Acording to manual: Single file Output (join input files together) - The filename can contain Environment Variables escaped between % signs e.g. %TEMP%\myfile.txt, and macros or global variables.
While processing I create a global variable by "Capture text" method or this structure (?P<gvar>......) inside replace filter. I can make sure everything is right by placing them in text freely.
Yet none of them appear in my filename. I see just blank space. What's more, the glob. variable created by "Capture text", having been successfully changed and not altered, returns it's initial value to filename. Why?

The initial task was to start my filename by date in this format: 2015.03.15 (instead of 20150315 allowed by @date variable).
(972 Bytes) Downloaded 490 times

User avatar
DataMystic Support
Site Admin
Posts: 2186
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Re: glob. variables within filename

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

Ah, the output filename is opened before the text is pushed through the filter.

Try using a variant of \sysadmin\rename files according to contents

to rename the file after processing it, in the endfile() function.

Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

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

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests