Jump to content

Add calendar events with (mostly) natural language


Recommended Posts

Hey there! 👋

 

I made a small workflow to add events to the calendar (stock Calendar app) with "natural language" (well... not really super sophisticated, but it feels "natural" to me in the sense that it's similar to how I create calendar events), similar to what Fantastical does. It works pretty good for me, and I thought to share it in case it can be useful for someone else as well :)

 

It's nothing fancy obviously, at the moment it can do some simple things like this:

 

  • "cal buy groceries tomorrow at 5pm"
  • "cal meeting next wednesday for 3 hours at 3pm PDT"
  • "cal in 2 hours get a break for 10 minutes"

 

calfred.gif

 

A couple notes:

  • it supports only 1 target calendar at the moment, with the name specified in the `calendar` workflow variable
  • it's written in Go (with `awgo`, thanks @deanishe!), for no particular reason rather that it's what I usually use for my projects, which means that it's compiled and it will bring up the annoying "verified developer" popup on macOS 10.15+
  • it should work on M1 via Rosetta, but I don't have a M1 Mac to make sure myself. I also thought about bundling the arm version with the workflow and/or creating separate downloadable workflows, if somebody is interested I can do something for that :)

 

Here's the link -> https://github.com/ruggi/calfred/releases/latest

 

Stay safe!

Link to comment
  • 1 month later...

This is working great for me on an M1. The only issue is that the time does not appear to be writing correctly to the calendar, but the day does. There is nothing in the time field when written to Calendar. I am using an M1 MBA if that helps. Thanks for contributing this!

Link to comment

Hi there, many thanks for this. I have only just installed Alfred for the first time, so I'm pretty sure I'm doing something wrong. 

 

I installed your workflow, changed the calendar name to my own calendar name. Then when I create an event, it shows fine in Alfred, but nothing appears in my calendar. 

 

Could you point me in the right direction? I'm running macOS 11.4 (intel). 

 

Many thanks. 

Link to comment
On 7/23/2021 at 11:23 PM, Slatts said:

Can't seem to get it to link to a calendar. I've tried changing the calendar variable (like in the example on the GitHub page). Any ideas? 

 

31 minutes ago, stachmou said:

I can't get it to work ! Query is launching fine but nothing appears in the calendar app... any help is appreciated

 

 

It would be helpful if you both attached a screenshot of the debug log to see if it shows an error?

 

Open the workflow, click the debug button, test the command in Alfred as you would and then see if there are any red errors in the log.

Post them so the OP can help out.

 

2006804442_Screenshot2021-07-26at12_26.24@2x.thumb.jpg.e09ff9c976a9c0adfea687a80dac6e66.jpgdebu

Link to comment
32 minutes ago, alfredpanda said:

 

 

It would be helpful if you both attached a screenshot of the debug log to see if it shows an error?

 

Open the workflow, click the debug button, test the command in Alfred as you would and then see if there are any red errors in the log.

Post them so the OP can help out.

 

2006804442_Screenshot2021-07-26at12_26.24@2x.thumb.jpg.e09ff9c976a9c0adfea687a80dac6e66.jpgdebu

there it is

Screenshot 2021-07-26 at 14.00.28.png

Link to comment
  • 2 weeks later...
  • 2 months later...

I installed the Workflow and it works beautifully in most cases.

 

However, if today is a Monday, when I type "next Thursday" it gives me tomorrow's date instead of next Thursday's date. Next seems to trigger the day that is coming up. 

In fact, if today is a Monday, when I type "next Monday", the helper does not change the date to next Monday's date and I am thus unable to enter a date.

Is it todo with my timezone? I am in GMT +8.

Thanks in advance!

Link to comment
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...