Comparing scripts
Posted: Tue Aug 19, 2025 1:59 am
Hi all --
Some time ago I duplicated a button with a 1725-line script in order to test, catch, and correct any errors. Unfortunately, I did not keep good notes on the corrections made to the copy. After spending some time comparing the scripts line-by-line -- thanks to having learned from forum members that a script could be opened in a new window, so two scripts could be viewed side-by-side -- I recalled that the BBEdit app had a "Find Differences..." feature that required only saving each version of the script as a text file, then opening these in BBEdit. Within a few seconds I found 8 changes I'd overlooked in my first tedious line-by-line comparison, so it was very easy to reconcile the two versions of the script.
Perhaps I've missed that there is some comparison feature in LiveCode (at least prior to the new AI version that I don't need and can't afford) that does the same. Otherwise, I recommend using at least the free version of BBEdit in order compare and reconcile scripts.
jeff k
Some time ago I duplicated a button with a 1725-line script in order to test, catch, and correct any errors. Unfortunately, I did not keep good notes on the corrections made to the copy. After spending some time comparing the scripts line-by-line -- thanks to having learned from forum members that a script could be opened in a new window, so two scripts could be viewed side-by-side -- I recalled that the BBEdit app had a "Find Differences..." feature that required only saving each version of the script as a text file, then opening these in BBEdit. Within a few seconds I found 8 changes I'd overlooked in my first tedious line-by-line comparison, so it was very easy to reconcile the two versions of the script.
Perhaps I've missed that there is some comparison feature in LiveCode (at least prior to the new AI version that I don't need and can't afford) that does the same. Otherwise, I recommend using at least the free version of BBEdit in order compare and reconcile scripts.
jeff k