I enjoyed this article from Dr. Drang about the robot-created AppleScript. I think AppleScript will be one of the most difficult languages for AI models to write because it was created to make it more human-readable, and that makes it quirky.
The other thing about AppleScript that will likely trip up the AI models (it certainly trips me up) is the modular nature of the language. Every app that implements AppleScript uses its own dictionary calls. From one app to another, these dictionaries vary greatly, and every script involving a new app requires a bit of spelunking.
Good luck with AppleScript, Robots, you’ll need it.