OK, just looking at your script. Don't know if i can work it out right now.
First mistake i have seen already:
Syntax rules for XYplorer Script Files
1.) The first line of an script has to start at column 1.
2.) Only the first line of an script starts at column 1. All others starts at column 2 or more.
3.) If an script has an "Caption" (or an "Label" for multi-script scripts) then this label has to start at column 1, instead of the first script line, which starts at column 2 or more then.
I think this part is missing in the help at "Syntax rules for XYplorer Script Files"
So Emil should remove the spaces before the captions like
Code: Select all
"... Current open Folders from L/R pane"
"... Selected Files or Folders from L/R pane"
and so on.
- - -
Edit
Second mistake:
"<xypath>"
is resolved (in Emils case) to
"C:\Program Files\XYplorer"
So
"<xypath>c:\Beyond Compare 3\ ......."
is resolved (in Emils case) to
"C:\Program Files\XYplorerc:\Beyond Compare 3\ ......."
Solution:
delete this "<xypath>" -part to get:
"c:\Beyond Compare 3\ ......."
--
Additional explanation:
my used syntax like
"<xypath>\..\WinMerge\............."
means
1.) resolved "<xypath>" to (e.g.) "C:\Program Files\XYplorer"
2.) add an backslash \ >> "C:\Program Files\XYplorer\"
3.) "..\" means: go one level up from "C:\Program Files\XYplorer\" to "C:\Program Files\" (in this example)
4.) go into an sub-folder "WinMerge\"
If ones folder structure is not so that this
relative path match, then the script fails.
Since my "WinMerge"-folder is on the same folder level as my "XYplorer"-folder this relative path works for me.
It's like
X:\one\Beyond Compare\
X:\one\PSPad\
X:\one\WinMerge\
X:\one\XYplorer\
Hope this helps for better understanding relative paths.
- - -
EDIT
Hint:
if you want to use "Edit this
script : edit",
and if you didn't have an "Tools"-subfolder with "Notepad2" in your XYplorer folder,
then modify:
OpenWith "<xypath>\Tools\NotePad2\Notepad2.exe", ,$ScriptFile;
to something simple like:
OpenWith "Notepad", ,$ScriptFile;
- - -
EDIT
please find the overworked script as attachment. (Untested, but should work?)
BCompare2.xys
- Clean up-ed script.
- (2.48 KiB) Downloaded 108 times
HTH?
_