TIL ChatGPT knows AppleScript. This will (eventually) be a useful debugging tool for people like me who dabble. Here it is generating a simple script and then debugging it. Seems weird it "knows" what is wrong with the script it generated rather than not cocking up to begin with.