Hi Back everyone!
Well, there might be a few solutions or workarounds...
• For Multiple files/folders:
giuliastar wrote:select several files from different source
While waiting for "cross tab selections", one approach is using custom "virtual Folders". This can be done via permanent variables, or tags indeed. An example is available
here.
• For 2 files/folders:
grindax wrote:Often I want to send files from multiple different locations as arguments to an application visible in the context menu. For example, 2 different files to a file comparison program.
This one is much easier thanks to the
<curitemprev> variable!
– Example 1:
Click on your first item (file or folder) to select it, then click on your second item (which can be in a different tab, in the other pane, etc.) — this latter one is assigned to
<curitem> and the previous one becomes assigned to
<curitemprev>. Then run this script.
Code: Select all
run "Path\Application.exe" "<curitemprev>" "<curitem>";
– Example 2:
A more complete code where items are compared when items are selected, or where panes are compared when nothing is selected (i.e. panes = the parent folders whose content is visible in each pane).
Note that depending on your comparison program, the first selected item/pane will be the "newest/master" item, so you know you can always click first on your newest file or folder, then on the oldest.
Code: Select all
"Compare Items"
if <curitem> { // Compare items
$item1=<curitem>; $item2=<curitemprev>;
run "Path\Application.exe" "$item2" "$item1";
} else { // Compare panes
$item1=get("path", a); $item2=get("path", i);
run "Path\Application.exe" "/CommandLineArgument" "$item2" "$item1";
}
Hope this helps,
Flux