Post ATQhdwEYoVRunGhsCu by simon@fedi.simonwillison.net
(DIR) More posts by simon@fedi.simonwillison.net
(DIR) Post #ATQShhtkYZHKB7JO2i by simon@fedi.simonwillison.net
2023-03-09T02:56:07Z
0 likes, 0 repeats
I can write AppleScript!Well, I can prompt ChatGPT to write me AppleScript, which I can then poke around with until it does exactly what I wantWhich means I can write little utilities in AppleScript now despite stubbornly refusing to learn any of the language for the past twenty yearsCurrently exporting my Apple Notes to SQLite with it
(DIR) Post #ATQT4TYI3r6ALS8Bd2 by simon@fedi.simonwillison.net
2023-03-09T03:00:13Z
0 likes, 0 repeats
Here's a tiny script I just wrote with it to tell me how many notes I have - saved as `notes-count.sh` and run using `chmod 755 notes-count.sh` and then`./notes-count.sh`#!/bin/zshosascript <<ENDtell application "Notes" set noteCount to count of notesend telldisplay dialog "There are " & noteCount & " notes in the Notes app."ENDChatGPT prompt was something like "Write a zsh script that uses AppleScript to show me the number of notes in my Notes app"
(DIR) Post #ATQTGda8b2acvWnJBo by dkiesow@social.kiesow.net
2023-03-09T03:00:14Z
0 likes, 0 repeats
@simon So when you think about it: We have trained a computer to teach us how to train a computer.
(DIR) Post #ATQTTdUKFwqsOuH320 by matx@infosec.exchange
2023-03-09T03:03:04Z
0 likes, 0 repeats
@simon Sounds awesome. Can you share this amazing AppleScript? I’ve often thought of exporting Notes in a nice way for extra backups. And I’ve been using chatGPT to start some shells scripts I’ve been too lazy to start. It’s a great way to start then iterate building apps. Little utilities to do small things. Some Unix find examples scripts here: https://github.com/macvfx/find
(DIR) Post #ATQXIt3gQRxtK2wTlQ by mnl@hachyderm.io
2023-03-09T03:47:39Z
0 likes, 0 repeats
@simon one of the big strengths of chatgpt. Deluding me into thinking I can do something and giving enough non working yet close enough “something” to get me started. I have so much excel, google sheets and html piling up, which I would always push away in the past
(DIR) Post #ATQXhQmyfSwosypd20 by rayckeith@techhub.social
2023-03-09T03:52:03Z
0 likes, 0 repeats
@simonvery cool.Next time, try prompting ChatGPT to create a holodeck program that provides Data with a worthy opponent in a Sherlock Holmes simulation. 🤠🤓(seriously, this kind of thing may be its best feature.)
(DIR) Post #ATQY9uR42IkGwQA43c by jetmakerbrit@mstdn.ca
2023-03-09T03:56:59Z
0 likes, 0 repeats
@simon @matx I recently used ChatGPT to help write some code for an Arduino project. It may not get you all the way but certainly provides a useful jumping off point.
(DIR) Post #ATQdM3785xPH6RRfQu by rodbegbie@xoxo.zone
2023-03-09T04:55:12Z
0 likes, 0 repeats
@simon Last time I did some Applescripting (cleaning up iTunes metadata), I found you could actually write in JavaScript!
(DIR) Post #ATQfEEnMyq5ivJbbnc by smy20011@m.cmx.im
2023-03-09T05:16:13Z
0 likes, 0 repeats
@simon Apple should redesign apple script use LLMs if possible.
(DIR) Post #ATQfPPDAaru4Pizz5U by simon@fedi.simonwillison.net
2023-03-09T05:18:23Z
0 likes, 0 repeats
@matx It's all in here now, including detailed notes in the closed issues https://github.com/dogsheep/apple-notes-to-sqlite
(DIR) Post #ATQfbDTo2O9VVIPbe4 by simon@fedi.simonwillison.net
2023-03-09T05:19:40Z
0 likes, 0 repeats
Used this to build a new "apple-notes-to-sqlite" Python tool, which calls out to AppleScript under the hood:https://github.com/dogsheep/apple-notes-to-sqliteI recorded detailed notes of my ChatGPT prototype in one of the issues there:https://github.com/dogsheep/apple-notes-to-sqlite/issues/1
(DIR) Post #ATQglTPRlYbRl6pNpY by Jmelloy@vis.social
2023-03-09T05:33:30Z
0 likes, 0 repeats
@simon chat GPT is *awesome* for small scripts and programming tasks. I had it so “write a JavaScript parser that converts lucene syntax to sql” the other day.
(DIR) Post #ATQhStv54rRkQmKesi by simon@fedi.simonwillison.net
2023-03-09T05:41:30Z
0 likes, 0 repeats
Got a couple of TILs out of this:https://til.simonwillison.net/pytest/pytest-subprocess
(DIR) Post #ATQhdwEYoVRunGhsCu by simon@fedi.simonwillison.net
2023-03-09T05:43:00Z
0 likes, 0 repeats
And this one about using ChatGPT to write AppleScript: https://til.simonwillison.net/gpt3/chatgpt-applescript
(DIR) Post #ATQiKNqSXu3iahfn3Q by steveax@dice.camp
2023-03-09T05:50:58Z
0 likes, 0 repeats
@simon the old saw was it was a read only language
(DIR) Post #ATQjDx9ixlQa24BJrs by mnot@techpolicy.social
2023-03-09T06:01:06Z
0 likes, 0 repeats
@simon when the machines take over, you will pay for that. Cruel and unusual…
(DIR) Post #ATQkCu5SzERCBCFmO8 by simon@fedi.simonwillison.net
2023-03-09T06:12:16Z
0 likes, 0 repeats
@matx also this TIL https://til.simonwillison.net/gpt3/chatgpt-applescript
(DIR) Post #ATQoeULsf9lmHvL96W by Cyberneticist@hachyderm.io
2023-03-09T07:01:51Z
0 likes, 0 repeats
@simon wow! I was wondering if you could help me with an issue I have with your knowledge of Apple notes! I scanned some docs, tried dragging them to a server to store them & instead of it copying across the PDF inside, the whole Apple note format got sent across. I deleted the originals not realising, so now I have a load of info locked away in a format I can't read! If I sent you a sample, would you be able to help please?
(DIR) Post #ATQopooWvRnow48wDo by simon@fedi.simonwillison.net
2023-03-09T07:04:01Z
0 likes, 0 repeats
@Cyberneticist what kind of file format could you send me?
(DIR) Post #ATQpsU9OJBZDfhjhpI by carlton@fosstodon.org
2023-03-09T07:15:38Z
0 likes, 0 repeats
@simon You’ve finally sold me! AppleScript has long been my nemesis 🦹♀️
(DIR) Post #ATQuBQR0kPNjSxGT0S by saurabhs@mas.to
2023-03-09T08:03:48Z
0 likes, 0 repeats
@simon This is awesome, appreciate the detailed notes!
(DIR) Post #ATRPbxuC1YJnNj37U8 by carlmjohnson@mastodon.social
2023-03-09T13:55:44Z
0 likes, 0 repeats
@simon “ChatGPT: All Languages Are JavaScript Now”
(DIR) Post #ATRSB1yR5bXY2kslHs by tswicegood@mosteverywhere.com
2023-03-09T14:24:47Z
0 likes, 0 repeats
@simon this is the best use of it yet!
(DIR) Post #ATV9u9uTJDUFBufmVc by Cyberneticist@hachyderm.io
2023-03-11T09:18:48Z
0 likes, 0 repeats
@simon it's the internal Apple notes format I think - I don't know how it ended up transferring in place of the pdf embedded inside, a glitch perhaps in drag and drop on iOS at the time? https://www.icloud.com/iclouddrive/0c8botAafhbPuldpX8C6nVWeQ#Blue_Paper_Note Is an example!
(DIR) Post #ATWoV5KjTfPB2L4wC0 by RhetTbull@fosstodon.org
2023-03-12T04:28:23Z
0 likes, 0 repeats
@simon nice article and project! Next time you can use python and macnotesapp 😀-- no AppleScript needed https://github.com/RhetTbull/macnotesapp