3 ms·
I Googled "applescript loop through apple notes" and this was the first result: https://apple.stackexchange.com/questions/225938/notes-script-to-access-notes-in
by skepticATX 3y ago
I Googled "applescript loop through apple notes" and this was the first result: https://apple.stackexchange.com/questions/225938/notes-script-to-access-notes-in-specific-folder https://apple.stackexchange.com/questions/225938/notes-scrip.... Looks exactly like what ChatGPT came up with for you minus the dialog.
I then Googled "applescript print to console" and got this: https://stackoverflow.com/questions/13653358/how-to-log-objects-to-a-console-with-applescript https://stackoverflow.com/questions/13653358/how-to-log-obje... ; admittedly this answer took a few minutes to read through, but the second most upvoted answer recommended using log, which your ChatGPT-developed solution (eventually) used.
This all took me < 5 minutes.
- simonw 3y agoYeah, those StackOverflow posts are the perfect illustration of why I find ChatGPT so much useful for this kind of thing. Compare them to my original transcript. They don't provide me with enough information: how do I actually run that code? I got ChatGPT to split me out a zsh script, which caused it to show me how to use "osascript -e ".