Page 1 of 2
Relative paths option for the location of replace lists?
Posted: Wed Apr 09, 2008 5:38 pm
by dfhtextpipe
If you share TextPipe filters with other people, and some of your filters contain references to replace list files, the recipients either have to replicate the same directory structure as yourself, or they have to modify their filters to adjust the path for these external replace list files.
Would it not be an enhancement to provide an option to specify the location of these files by means of a relative path instead of an absolute path?
Posted: Thu Apr 10, 2008 7:00 pm
by DataMystic Support
You already can. Note that the path is relative to the current path when TextPipe was started.
But the current path could be anywhere!
Posted: Fri Apr 11, 2008 1:26 am
by dfhtextpipe
Hi Simon,
If you launch TextPipe from the Explorer shell context menu, the "current path" could be anywhere. It depends what files you wish to process, and where they happen to be.
Did you really mean "relative to the current path when TextPipe was started", or "relative to the path where the current filter is located" ?
Best regards,
David Haslam
Posted: Fri Apr 11, 2008 10:00 am
by DataMystic Support
It definitely is relative to where TextPipe is started from from, not where the filter comes from, although the latter would be far more useful. I'll put it on the todo list.
Excellent
Posted: Fri Apr 11, 2008 6:37 pm
by dfhtextpipe
Hi Simon,
Thanks for recognizing the opportunity for an improvement.
I am glad I asked.
Best regards,
David Haslam
Re: Relative paths option for the location of replace lists?
Posted: Sat Oct 10, 2009 5:41 am
by dfhtextpipe
Hi Simon,
Did this improvement ever get implemented?
Best regards,
David Haslam
Re: Relative paths option for the location of replace lists?
Posted: Mon Oct 12, 2009 9:42 am
by DataMystic Support
It was implemented - but not for search/replace lists. We've just added it for 8.4.1.
Re: Relative paths option for the location of replace lists?
Posted: Tue Oct 13, 2009 1:12 am
by dfhtextpipe
Thanks.
Re: Relative paths option for the location of replace lists?
Posted: Wed Apr 13, 2011 1:20 am
by alnico
Relative paths seem to be limited and not work as expected...
Putting a simple filename (no path) in the Filename field(s) works as expected, i.e. 'myfile.txt'.
But, I need to create folders for many types of output and grab input from folders as well, thus...
Inserting a path such as this: '\output\myfile.txt' does not work as expected. I would assume it would create a folder where my *.fll exists ('[fllPath]\output\myfile.txt'). Instead it creates c:\output\myfile.txt (not good as this could inadvertently overwrite important/system files if the naming was just right).
Thanks,
Brent
Re: Relative paths option for the location of replace lists?
Posted: Wed Apr 13, 2011 1:14 pm
by DataMystic Support
It works precisely as expected Brent!
If you want it relative to the current directory, use
Re: Relative paths option for the location of replace lists?
Posted: Thu Apr 14, 2011 12:04 am
by alnico
Ah yes, it does work as expected, thanks for clarify Simon.
However, the Help files are not clear about it's usage and the two main filters do not mention it at all (Files to Process, Output Filter).
Maybe the original Help line: ("A path can be specified relative to the current filter path.") could say:
"A path can be specified relative to the current filter path, i.e. file.txt or .\output\file.txt or ..\output\file.txt"
Also, clicking on the 'open folder' icon for a relative path does not open the location where that file resides.
I guess I was a little confused because TextPipe file paths seem to follow two out of the three standard HTML path conventions (#1 and #3, but has its own convention for #2).
1. links in the same directory as the page file have no path information listed: file.html
2. sub-directories are listed without any preceding slashes: weekly/file.html
3. links up one directory are listed as: ../file.html
Ultimately I guess I don't care, as long as the Help files are clear about its implementation.
Regards,
Brent
Re: Relative paths option for the location of replace lists?
Posted: Thu Apr 14, 2011 9:04 pm
by DataMystic Support
Thanks Brent - change made to the help file to clarify this.
This is exactly DOS/Windows standard relative path implementation - this will work identically for every other bit of software (e.g. notepad).
I will check the folder open button.
Re: Relative paths option for the location of replace lists?
Posted: Fri Apr 15, 2011 5:10 am
by alnico
Thank you Simon!
Something strange has just happened...folder open button (when pointing to a relative path) now seems to work.
Path convention 'folder\filename.txt' which I tested a couple of days ago did not work ; but now seems to work (is this a supported convention?).
The Help file for filter "Inside filename" pointed to an old help file...I then searched the Help and found the "Inside filename" Help page (which I think you renamed). I then went back to the filter and clicked on the Help and it opened the right Help file "Inside filename"???
This is very strange...almost like things were cached...is my computer possessed
TextPipe 8.8.1
Brent
Re: Relative paths option for the location of replace lists?
Posted: Fri Apr 15, 2011 5:27 am
by alnico
If I open a fll file from a previous version of TP...
Does the newer TP update/convert all filters, names and Help links, etc? I am assuming, Yes.
If Yes, if I DO NOT save the updated fll file, I am guessing it retains the old TP settings...and would be updated every time it is opened.
Is there any disadvantage of not saving the updated fll file?
I was thinking, maybe this had to do with the strange issues mentioned above?
Can you clarify?
Thanks,
Brent
Re: Relative paths option for the location of replace lists?
Posted: Fri Apr 15, 2011 7:34 am
by dfhtextpipe
Are relative paths relative to where the filter is stored, or relative to where the input files are stored?
Is there a way for the user to choose which?
David