@alldritt, will the Script Geek freeware be released as open source (or put on GitHub) in June for study?
I ask as I came to appreciate the thinking behind Kent Beck-style green checks and wondered what would be involved to modify this existing code to have such functionality, but checking for correctness (by either text or file contents) rather than speed.
The left side would be for display/edit of the AppleScript, the top right for expected output and the bottom right for the actual output. When “Run” button depressed, the bottom right panel would gain either a green or red border correspondingly (immediately removed by any change to left side).
If unsuccessful, the expected text portion would have its differences highlighted, optionally ignoring whitespace. Could use/borrow aspects of a Cocoa version of something like mgdiff
(GitHub - IanDarwin/mgdiff: mgdiff - an historical X-based diff viewer) if it made it much simpler to display the comparison externally. If anyone knows of something free that’s better than using FileMerge
, I’m all ears.
Not asking for this to be written – just curious for the opinion and thoughts of an experienced Cocoa developer. How difficult would this be?