For what it is worth I have found claude.ai to be better with AppleScript than ChatGPT. Gemini on the other hand seems to be next to worthless. It doesn't even follow things I tell it not to do. I'd say about 1 in 100 AppleScript I ask Gemini to help me with work but I keep trying thinking it might get better.