Has anyone tried using AIs (LLMs) for generating AS code? Any AI doing it better than others?
I’ve asked ChatGPT to
write an applescript that converts a two-dimensional list of text values into a csv or tsv file that can be imported by excel in order to create a table from it
And it seemed to generate correct code, including proper escaping of the field values. This could make writing AppleScripts so much easier for novices now, if only Apple hadn’t abandoned it a while ago.
My experience is awesome. I don’t know how to make code (my level is 0) but I am making lot of Applescripts to use it with Macos Shortcuts or Bettertouchtool.
I need to guide ChatGPT a lot, changing ideas and simplyfing them, and later I have to try it and modify delay or asking chatgpt for some changes based on my experiments. For example, instead of “move X to X”, I have to tell Chat GPT, open app and press X key combination (a keyboard shortcut for this app), or open X menubar option.
Some basic scripts I made (with ChatGpt help) last days:
Dual Finder Windows side by side (without Split view) with a keyboard shortcut
Summarize PDF with Preview (right click on a pdf at desktop, it opens Preview and Summarize with Apple Intelligence; my default Pdf editor is Pdf expert)
I tried making code with Perplexity, too, but from my experience ChatGPT give me better results