Hacker News new | past | comments | ask | show | jobs | submit login

I had the exact same use case two weeks ago but I had received a pdf file from school and was sitting at a cafe with only my phone.

I use ChatGPT, and while the article is correct to say that it will claim that it cannot generate .ics files directly in the code interpreter it is however very much capable of solving this particular problem. I did the following (all on my android phone):

1. Had it extract all the useful dates, times and comments from the pdf 2. Prompted it to generate the ics file formatted content as code output 3. Prompted it to use the code interpreter to put this content into a file and save it as a .ics extension

It complied through and through and I could download and open the file with the gcal app on my phone to import all appointments..

For completeness, the claim that the code interpreter cannot "generate" ics files is because the python environment in which it runs doesn't have a specific library for doing so. ICS files are just text files with a specific format, so definitely not out of reach.




Interesting, maybe ChatGPT got more reluctant to spit out ics? Didn't have to try very hard back in May: https://chatgpt.com/share/0848349d-4b0b-40f8-9d24-e9c4ffc065...


Now it would be cool to add an ICS layer to a map and be able to publish ICS events to a GPS location with a temporal awareness. (Im on the InstantDB bandwagon, so Ill be hitting all the nAIls with it for the foreseeable...


Yeah, Claude.ai just gave me the text that I simply saved as a my.ics file. I wonder if I could reword the prompt to get chatgpt to do it.


Yes, just rewording is enough in this case. It will fail if it tries to be clever with the code interpreter as mentioned.

I used:

"Extract the important dates and times from this pdf in Swedish"

[..]

"Great now generate the content of an ics formatted file, just the text, with the schedule above"

[..]

"Now use the code interpreter to create a file with the above content then save the file as an .ics extension"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: