Re: XY + WinMerge
Posted: 18 Jan 2015 17:25
I use this simple catalog entry.
select two items in currPane OR one item in each pane!Any differ script needs pane-comparison! Panes are there asking to be compared! 
ed: btw, what's the use of /e and /r? BCompare doesn't have these options.
[ed:beautify]
ed: I now added a normal BCompare launcher option to the script!
(plus fixed a overly enthusiastic beautification. : oops : )
select two items in currPane OR one item in each pane!
Code: Select all
"BeyondCompare"
//prio: 2xSelxPane > 1xSelxPanes
$app = "<xypath>\..\BeyondCompare\BCompare.exe";
$cmd = '/fv="Hex Compare"';
$pa = get(SelectedItemsPathNames,'|',a);
$pi = get(SelectedItemsPathNames,'|',i);
if (gettoken("$pa",count,'|') == 2) {$files = '"'.replace($pa,'|','" "').'"';}
elseif (gettoken("$pa",count,'|') == 1)&&
(gettoken("$pi",count,'|') == 1) {$files = """$pa"" ""$pi""";}
else {$files = "";$cmd = "";status "BCompare::pick one item in each pane Or two in current pane to diff";wait 1;}
run """$app"" $files $cmd";ed: btw, what's the use of /e and /r? BCompare doesn't have these options.
[ed:beautify]
ed: I now added a normal BCompare launcher option to the script!