Please update for Beyond Compare 5.
Please update to add Beyond Compare 5 and also fix the parameters to be able to effectively compare json files in BC and change the method of comparing to sort the it in beyond compare.
https://forum.scootersoftware.com/forum/beyond-compare-discussion/general-aa/91626-windows-explorer-shell-extension-not-working-in-3rd-party-apps?p=94034#post94034
Added beyond compare 5 path to the file paths Ditto checks.
https://github.com/sabrogden/Ditto/releases/tag/nightly
FYI you can specify your own path in options - general - advanced - "Diff application path"
What parameters are you looking to be passed to compare json files
What parameters are you looking to be passed to compare json files
Thanks for the tip about the diff application path.
I haven't been able to figure out why when I used Beyond Compares Clipboard and compare, I can sort a json file, and when I used Ditto, I cannot.
Here is what I captured for the command line args when launching beyond compare.
Ditto:
Beyond Compare "Clipboard Compare"
I see a few differences, but I don't know why theirs works and Ditto does not.
- BC is going to a different temporary location
- BC has a title
- BC doesn't have quotes around the paths
- BC has a .tmp filename extension.
Here is the actual sorting command they do that fails:
C:\WINDOWS\system32\cmd.exe /c ""C:\Users\User\AppData\Roaming\Scooter Software\Beyond Compare 5\Helpers\JSON\JSON_sorted.bat" "C:\Users\User\Downloads\DittoPortable_64bit_3_24_323_0\Ditto\ClipCompare\ditto_compare_2.txt" "C:\Users\User\AppData\Local\Temp\BC555A5.tmp""
I found the utility that JSON_sorted calls only supports utf8 files, Ditto was passing in unicode files. Updated Ditto to save utf8 files when diffing, the latest is working for me, https://github.com/sabrogden/Ditto/releases/tag/nightly
It opens and then you can select the format JSON sorted.
That sounds awesome. Thanks!
Nice, nice, nice. The nightly works with Beyond Compare 5 now (I needed to change the default diff application path for it to work, see the sagbrogden's instructions above).
PS I immediately made a small donation to this project.