I have 2 suggestion regarding variables used as parameters inside Define favorite toolbars option dialog.
1. Variable modifiers or new variables
Please, introduce modifiers to parameter variables to allow the user to extract specific data from the paths to the items, i.e.
- filename (without extension) part of the full path, examples:
Code: Select all
X:\path\to\the\FILE.EXT => FILE X:\path\to\the\DIRECTORY => DIRECTORY
- extension part of the filename, example:
Code: Select all
X:\path\to\the\FILE.EXT => EXT
- filepath part of the full path (its the path to the directory which contains the item), examples:
Code: Select all
X:\path\to\the\FILE.EXT => X:\path\to\the\ X:\path\to\the\DIRECTORY => X:\path\to\the\
Example names for modifiers and new variables:
Code: Select all
I (item) A B C
-------------------------------------------------------------------------------------------
modifier $Name(I) $Ext(I) $Dir(I)
-------------------------------------------------------------------------------------------
%LeftItem% %LeftItemName% %LeftItemExt% %LeftItemDir%
%RightItem% %RightItemName% %RightItemExt% %RightItemDir%
%ActivItem% %ActivItemName% %ActivItemExt% %ActivItemDir%
%InactivItem% %InactivItemName% %InactivItemExt% %InactivItemDir%
-------------------------------------------------------------------------------------------
%LeftSel% %LeftSelName% %LeftSelExt% %LeftSelDir%
%RightSel% %RightSelName% %RightSelExt% %RightSelDir%
%ActivSel% %ActivSelName% %ActivSelExt% %ActivSelDir%
%InactivSel% %InactivSelName% %InactivSelExt% %InactivSelDir%
-------------------------------------------------------------------------------------------
%LeftSelAsFile% %LeftSelNameAsFile% %LeftSelExtAsFile% %LeftSelDirAsFile%
%RightSelAsFile% %RightSelNameAsFile% %RightSelExtAsFile% %RightSelDirAsFile%
%ActivSelAsFile% %ActivSelNameAsFile% %ActivSelExtAsFile% %ActivSelDirAsFile%
%InactivSelAsFile% %InactivSelNameAsFile% %InactivSelExtAsFile% %InactivSelDirAsFile%
The way the temporary files (%...AsFile% variables) are being passed to the command line stays the same (full path), only the content of the file should change accordingly to what kind of modification the chosen variable represent.
2. Re-arrange Variables menu
In the Define favorite toolbars window the menu for adding variables to the Parameter edit field IMO should be re-arranged to use submenus and I belive the choices also need to be grouped differently.
When using the menu now user's attention flows as such:
I want my tool to process items => Which items? => From which pane?
IMO it actually should be the other way around, ie.:
I want my tool to process items => From which pane? => What items?
I belive it's more intuitive. Firstly you want to find the location of the files (Which pane?) and only after that, you decide which files you actually choose (Which items?).
Also the way the names of the variables suggest exactly that (ie. %ActivSel% : from "Activ pane" get "Selected items").
So, I imagine menu looking similar to this:
Code: Select all
... (Parameter)
|
+- Active pane
| +- Selected items %ActivSel%
| +- Selected items (as file) %ActivSelAsFile%
| +- Focused item %ActivItem%
| +- Folder %ActivDir%
|
+- Inactive pane
| +- Selected items %InactivSel%
| +- Selected items (as file) %InactivSelAsFile%
| +- Focused item %InactivItem%
| +- Folder %InactivDir%
|
+- Left pane
| +- Selected items %LeftSel%
| +- Selected items (as file) %LeftSelAsFile%
| +- Focused item %LeftItem%
| +- Folder %LeftDir%
|
+- Right pane
| +- Selected items %RightSel%
| +- Selected items (as file) %RightSelAsFile%
| +- Focused item %RightItem%
| +- Folder %RightDir%
|
+- Modifiers
+- Extract filename $Name()
+- Extract extension $Ext()
+- Extract directory path $Dir()
Code: Select all
... (Parameter)
|
+- Active pane
| +- Selected items
| +- Full paths %ActivSel%
| +- Filenames only %ActivSelName%
| +- Extensions only %ActivSelExt%
| +- Directory paths only %ActivSelDir%
| +- Selected items (as file)
| +- Full paths %ActivSelAsFile%
| +- Filenames only %ActivSelNameAsFile%
| +- Extensions only %ActivSelExtAsFile%
| +- Directory paths only %ActivSelDirAsFile%
| +- Focused item
| +- Full paths %ActivItem%
| +- Filenames only %ActivItemName%
| +- Extensions only %ActivItemExt%
| +- Directory paths only %ActivItemDir%
| +- Folder %ActivDir%
|
+- Inactive pane
| +- Selected items
| +- Full paths %InactivSel%
| +- Filenames only %InactivSelName%
| +- Extensions only %InactivSelExt%
| +- Directory paths only %InactivSelDir%
| +- Selected items (as file)
| +- Full paths %InactivSelAsFile%
| +- Filenames only %InactivSelNameAsFile%
| +- Extensions only %InactivSelExtAsFile%
| +- Directory paths only %InactivSelDirAsFile%
| +- Focused item
| +- Full paths %InactivItem%
| +- Filenames only %InactivItemName%
| +- Extensions only %InactivItemExt%
| +- Directory paths only %InactivItemDir%
| +- Folder %InactivDir%
|
+- Left pane
| +- Selected items
| +- Full paths %LeftSel%
| +- Filenames only %LeftSelName%
| +- Extensions only %LeftSelExt%
| +- Directory paths only %LeftSelDir%
| +- Selected items (as file)
| +- Full paths %LeftSelAsFile%
| +- Filenames only %LeftSelNameAsFile%
| +- Extensions only %LeftSelExtAsFile%
| +- Directory paths only %LeftSelDirAsFile%
| +- Focused item
| +- Full paths %LeftItem%
| +- Filenames only %LeftItemName%
| +- Extensions only %LeftItemExt%
| +- Directory paths only %LeftItemDir%
| +- Folder %LeftDir%
|
+- Right pane
+- Selected items
+- Full paths %RightSel%
+- Filenames only %RightSelName%
+- Extensions only %RightSelExt%
+- Directory paths only %RightSelDir%
+- Selected items (as file)
+- Full paths %RightSelAsFile%
+- Filenames only %RightSelNameAsFile%
+- Extensions only %RightSelExtAsFile%
+- Directory paths only %RightSelDirAsFile%
+- Focused item
+- Full paths %RightItem%
+- Filenames only %RightItemName%
+- Extensions only %RightItemExt%
+- Directory paths only %RightItemDir%
+- Folder %RightDir%
Above all, I think the ability to pass as a parameter a list of only the bare filenames (in contrast to their full paths) to a program would be a thing of GOLD, especially when considering how limited the command line in Windows is (accepting 8191-character wide command at a time).
For example, using some image converter if one needed now to modify a thousand of image files (called IMG0001.JPG, IMG0002.JPG etc.) all of them stored in a single directory at:
C:\Documents and Settings\User\My documents\My images\Family pictures\Christmass 2000
only a pitiful 80 or so images could be accessed that way in single go.
But using the above modifiers/variables one could very easily turn this number into over a 700!
Sorry for this long post.
Regards.