Bug when running TextPipe filter as shell extension
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Bug when running TextPipe filter as shell extension
In recent months, TextPipe has exhibited the unintended processing of all matching files found in %USERPROFILE%
even though the filter has been started as a Windows shell extension to process a file in a completely different folder.
To prove this was happening, I created a dummy file to act as bait for this behaviour.
"C:\Documents and Settings\David\Honeypot.txt"
Several of my filter are designed to process files matching *.txt
The output file extension gets changed by one such filter to .vpl.txt
Selecting a file elsewhere (even on another drive) and using the Windows shell command to select the required filter,
I find that repeated starts produce more and more unwanted output files in my userprofile, even though I had not selected anything there!
I end up with
Honeypot.vpl.txt
Honeypot.vpl.vpl.txt
Honeypot.vpl.vpl.vpl.txt
etc.
This is really weird behaviour that should not occur. How can this be prevented?
Best regards,
David Haslam
even though the filter has been started as a Windows shell extension to process a file in a completely different folder.
To prove this was happening, I created a dummy file to act as bait for this behaviour.
"C:\Documents and Settings\David\Honeypot.txt"
Several of my filter are designed to process files matching *.txt
The output file extension gets changed by one such filter to .vpl.txt
Selecting a file elsewhere (even on another drive) and using the Windows shell command to select the required filter,
I find that repeated starts produce more and more unwanted output files in my userprofile, even though I had not selected anything there!
I end up with
Honeypot.vpl.txt
Honeypot.vpl.vpl.txt
Honeypot.vpl.vpl.vpl.txt
etc.
This is really weird behaviour that should not occur. How can this be prevented?
Best regards,
David Haslam
David
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
Hi David,
A shell extension filter should NOT specify any filenames as these get overridden by what you choose within Windows Explorer.
- Perhaps we should change TextPipe to remove any existing files in the list first?
In v8.4 TextPipe's file list is NOT processed relative to the current path, hence the default dir is probably your user folder.
In 8.4.1 these can will relative to the filter location. If you specify files from the command line then they are relative to the current folder.
Naturally you will end up with repeated files, because
Honeypot.vpl.txt also matches your file wildcard of *.txt - so you will get a new output file for each.
A shell extension filter should NOT specify any filenames as these get overridden by what you choose within Windows Explorer.
- Perhaps we should change TextPipe to remove any existing files in the list first?
In v8.4 TextPipe's file list is NOT processed relative to the current path, hence the default dir is probably your user folder.
In 8.4.1 these can will relative to the filter location. If you specify files from the command line then they are relative to the current folder.
Naturally you will end up with repeated files, because
Honeypot.vpl.txt also matches your file wildcard of *.txt - so you will get a new output file for each.
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
Please try the TextPipe Pro 8.4.1 beta in the secure area
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Bug when running TextPipe filter as shell extension
I don't have a license for the Pro edition.
David
David
David
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Bug when running TextPipe filter as shell extension
Dear Simon,
You wrote, "- Perhaps we should change TextPipe to remove any existing files in the list first?"
I think something should be done to warn the user when any filter specified as a Shell extension has any active entries in the files list.
Perhaps there should be an option in Preferences to ignore all entries in the files list when the filter is started as a Shell extension?
Best regards,
David
You wrote, "- Perhaps we should change TextPipe to remove any existing files in the list first?"
I think something should be done to warn the user when any filter specified as a Shell extension has any active entries in the files list.
Perhaps there should be an option in Preferences to ignore all entries in the files list when the filter is started as a Shell extension?
Best regards,
David
David
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
Or perhaps /CLEARFILES should be defaulted in the Shell Ext dialog to remove the existing files?
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Bug when running TextPipe filter as shell extension
That would not make sense - you can be editing the Shell Extensions with other filters open in TextPipe that are not called by Windows Shell.
The user would be confused, and you could end up removing files for the wrong filters.
I still think that an automatic ignore for specified files would be preferable when TextPipe is called by a Shell command.
David
The user would be confused, and you could end up removing files for the wrong filters.
I still think that an automatic ignore for specified files would be preferable when TextPipe is called by a Shell command.
David
David
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
I mean this command line option could be defaulted in the dialog to automatically remove the files. The user could remove it if they wished. Your thoughts?DataMystic Support wrote:Or perhaps /CLEARFILES should be defaulted in the Shell Ext dialog to remove the existing files?
Did you see the new version of this dialog?
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Bug when running TextPipe filter as shell extension
Dear Simon,
I hadn't understood you before.
/CLEARFILES can be specified in the fourth column of the Shell extensions dialogue, separately for each filter.
Now that I realize what you meant, yes - I agree that this would be a useful default.
The change should be carefully explained in release notes.
Best regards,
David Haslam
I hadn't understood you before.
/CLEARFILES can be specified in the fourth column of the Shell extensions dialogue, separately for each filter.
Now that I realize what you meant, yes - I agree that this would be a useful default.
The change should be carefully explained in release notes.
Best regards,
David Haslam
David
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
Ok how about a warning in the status log if a command line has existing files in its Files To Process list?
e.g.
or
e.g.
Code: Select all
Warning - Files specified in the Files to Process list of this filter have been ignored
Code: Select all
Warning - Files found in the Files to Process list of this filter
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Bug when running TextPipe filter as shell extension
Simon,
The first proposal is one I would prefer.
David.
The first proposal is one I would prefer.
David.
David
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
As it turns out, TextPipe has no way to distinguish filters triggered from a Shell Extension versus filters run from the command line.
We're adding a new command line option /fromshellext so that it can detect this.
We're adding a new command line option /fromshellext so that it can detect this.
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Bug when running TextPipe filter as shell extension
This is now ready in 8.4.2.