On scripting...

Things you’d like to miss in the future...
Post Reply
cajhin
Posts: 15
Joined: 29 Oct 2004 23:14

On scripting...

Post by cajhin »

It's not a bug, it's just unpleasant....

I always avoided XY scriping, but I gave up waiting for a useful compare command. Starting WinMerge manually is, gah, not smooth.
The droid I'm looking for: viewtopic.php?f=7&t=4420&p=195617&hilit ... ge#p195617
(saving that script as minmerge.xys)

check menu > Tools > Configuration > Other > Features > Scripting

menu > Tools > Customize Toolbar > User Button #1 > Add
-> there is no way to configure that icon?
Note: IMO double-click should start/edit/open but NEVER delete/remove the item
Close

Toolbar icon > right-click > Edit...
"On left click:" : C:\app\conf\local\XYplorer\Scripts\winmerge.xys
left click -> "path/to/script is not a valid script command"

change the action to "start path/to/script"
-> "Overflow error"

Read the help. No idea.

change the action to "run (path/to/script)"
-> Overflow error
change the action to "exec (path/to/script)"
-> Overflow error


Giving up, most of my compares are with IntelliJ in a Linux VM anyways...

I'm taking the time to describe my displeasure because I like XYplorer a lot.
XYplorer >> Explorer 2022 > the Gnome filemanager > Explorer 2005 >> the macos abomination


Maybe I should have opened a positive feature request instead:
"looking for a method to quickly compare two files or directories, wihout jumping through burning hoops. WinMerge is a good tool".

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: On scripting...

Post by highend »

You should have read the beginning of the script...

Code: Select all

How to use:
	1.) Copy the script below in an file "..\scripts\BCompare.xys".
	2.) Then, e.g., add an CTB toolbar button:
		Name: BCompare
		Icon: path\to\Beyond Compare 3\BCompare.exe
		On Click: load BCompare;
	3.) Select two files or folders in XY.
	4.) execute this script.
	5.) you are prompted with an menu
One of my scripts helped you out? Please donate via Paypal

Post Reply