Dropping files on User Menu Bar Items ignores parameters
Posted: 04 May 2006, 15:49
Any options defined for a program in the user menu bar are ignored when a file is dropped on it. I'd expect Salamander to replace the specified variables with the values taken from the dropped file, at least as long as a single file or directory is dropped. If no selection specific variables are specified in the parameters field, I'd consider putting a list of quoted full names at the end of the provided parameters as appropriate.
As an example I use BareGrep, a free regular expression search tool by Bare Metal Software Pty Ltd. Its command line syntax is
or
Obviously, since I have no way of telling it what to search for from within SS, I need to use the second form. When dropping files on the User Menu Bar icon, SS ignores the specified -n option and consequently baregrep treats the first or only file as the search pattern.
As an example I use BareGrep, a free regular expression search tool by Bare Metal Software Pty Ltd. Its command line syntax is
Code: Select all
baregrep [options] [pattern {file(s)}]
or
Code: Select all
baregrep (-n|--no-regex) [options] {file(s)}
Obviously, since I have no way of telling it what to search for from within SS, I need to use the second form. When dropping files on the User Menu Bar icon, SS ignores the specified -n option and consequently baregrep treats the first or only file as the search pattern.