Parse calendar events

Posted on
Mon Jul 27, 2015 6:57 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Parse calendar events

Hi all,

I would like that Indigo tells/speaks my calendar event.
Use case: in the morning, while having breakfast, Indigo reads my events :)

I know that there is the iCal plugin but it seems that iCal/Calendar does not send anymore the emails (I read about this here).

My idea was to get all the calendar via AppleScript/Automator and then let Indigo (Python/Applescript) do the rest.
Surfing the web I found this http://icaldoit.sourceforge.net/ which is shipped with bunch of Automator workflows and Applescript to get events (with option/filtering).
I will give a try in the next days

Does anyone have another idea?

Posted on
Mon Jul 27, 2015 1:56 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Parse calendar events


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jul 27, 2015 3:23 pm
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Parse calendar events

Yes but it seems not working as API changed

Posted on
Tue Jul 28, 2015 2:38 am
DomoPat offline
User avatar
Posts: 210
Joined: Jul 17, 2010
Location: Toulouse, France

Re: Parse calendar events

iCalBuddy will parse the events from iCal with great flexibility and speed. I use it in my Applescripts and it made them much simpler !

Posted on
Tue Jul 28, 2015 4:40 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Parse calendar events

Thanks :)
I will give it a look :)

Posted on
Tue Jul 28, 2015 5:04 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Parse calendar events

How do you integrate it in Indigo?

Posted on
Tue Jul 28, 2015 5:24 am
DomoPat offline
User avatar
Posts: 210
Joined: Jul 17, 2010
Location: Toulouse, France

Re: Parse calendar events

In the morning it speaks the events of the day, and at midnight another scripts updates some variables like "vacation" for kids or "day off" so that the blinds and lights have different schedules...

Posted on
Tue Jul 28, 2015 5:44 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Parse calendar events

Wel...who speaks?
Indigo or iCalbuddy? I saw that it can also speak.

Results of the "queries", as far as I understood, cannot be saved into XML/CVS and so on, how does Indigo read them?

Thanks

Posted on
Tue Jul 28, 2015 9:49 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Parse calendar events

MarcoGT wrote:
I know that there is the iCal plugin but it seems that iCal/Calendar does not send anymore the emails (I read about this here).


I just tested iCal on Yosemite with an email event - and it worked fine. Where did you read that it doesn't work?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Jul 28, 2015 9:53 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Parse calendar events

jay (support) wrote:
MarcoGT wrote:
I know that there is the iCal plugin but it seems that iCal/Calendar does not send anymore the emails (I read about this here).


I just tested iCal on Yosemite with an email event - and it worked fine. Where did you read that it doesn't work?



I think he's actually referring to the Cynical Calendar plugin, which doesn't seem to work anymore (possibly since Mavericks).

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jul 28, 2015 10:25 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Parse calendar events

FlyingDiver wrote:
I think he's actually referring to the Cynical Calendar plugin, which doesn't seem to work anymore (possibly since Mavericks).


Possibly, but since he mentioned "not send anymore emails" I assumed it was the iCal Alarm Processor plugin since it works from alert emails (unlike the Cynical plugin, which directly uses the calendar store API). ;)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jul 29, 2015 12:12 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Parse calendar events

jay (support) wrote:
I just tested iCal on Yosemite with an email event - and it worked fine. Where did you read that it doesn't work?


I mixed up things, maybe as far as I remember, there was a problem on Yosemite (or maybe Mavericks) that iCal was not sending e-mail anymore, am I wrong?

Posted on
Wed Jul 29, 2015 5:30 am
DomoPat offline
User avatar
Posts: 210
Joined: Jul 17, 2010
Location: Toulouse, France

Re: Parse calendar events

MarcoGT wrote:
Wel...who speaks?
Indigo or iCalbuddy? I saw that it can also speak.

Results of the "queries", as far as I understood, cannot be saved into XML/CVS and so on, how does Indigo read them?

Thanks


Indigo speaks the results that are stored in a string, like in the AppleScript code below:

Code: Select all
set TheString to (do shell script "/usr/local/bin/icalbuddy -nc -ic Perso eventsToday")
say TheString


I guess you could integrate that string in an XML file too.

Posted on
Wed Jul 29, 2015 6:23 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Parse calendar events

Ok, thanks, I will give definitely a try :)

Posted on
Wed Jul 29, 2015 8:51 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Parse calendar events

MarcoGT wrote:
I mixed up things, maybe as far as I remember, there was a problem on Yosemite (or maybe Mavericks) that iCal was not sending e-mail anymore, am I wrong?


As I stated above Yosemite is sending the emails fine for me. I can't speak to anything else but my own personal experience...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Who is online

Users browsing this forum: No registered users and 12 guests