Re: Calendar interfaces

2022-09-20 Thread Andre Garzia via use-livecode
Graham,

In 2005 I wrote a library to parse and generate vCards and iCalendar files. It 
is a very old library I wrote when I was still early in my LiveCode journey. It 
works but it is underdocumented. There are commands and functions to generate 
an iCalendar file and there are some “raw” vObject (the common part of vCards 
and iCal files) functions that can be used to parse them.

I don’t think this is a turn-key solution for your problem but it is a good 
starting point to develop your own solution. I’ve uploaded it to:

https://andregarzia.com/files/vObjectPackage.livecode.zip 


The iCal part is not documented but it is on the source code. Learn the vCard 
documentation and you’ll get a feel for how the iCal part should work. Then, 
look at the source of “vObjectlib” substack for the command names.

Best
Andre

> On 19 Sep 2022, at 16:43, Graham Samuel via use-livecode 
>  wrote:
> 
> Folks, I have not been following this list with great attention for the last 
> few months, nor doing active LC development, so I’ve missed a lot, but now I 
> have been asked to look into the possibility of an app that reads and writes 
> to standard calendars, particularly the kind used by Apple. I believe their 
> apps for Mac and iOS use some kind of open standard, and if so there must be 
> a useable API.
> 
> To save me lots of research, can I ask if anyone has worked with calendars 
> like these, and if so, can they point me to an easy way to get LC to talk to 
> them.
> 
> TIA
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Calendar interfaces

2022-09-19 Thread Graham Samuel via use-livecode
Wow! That was a quick reply! Thanks so much. I will look forward very much to 
learning from you example file.

Graham

> On 19 Sep 2022, at 18:05, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi Graham. I was just looking at this myself. I think the best way to work 
> with calendars is to send an email with an iCalendar file (.ics). I will send 
> you a zip file of an example with attachment to your personal email. It's 
> pretty straight forward, but the file attachment is base 64 encoded binary so 
> be aware of that. .ics files are simply specially formatted text files. Most 
> email clients when they detect an ics file with an invite embedded will give 
> you an accept/decline option.
> 
> That being said, I know that MacOS calendar app is Applescript enabled, and 
> if you open an ics file in windows with the command prompt, it will launch 
> the default calendar app and add the event to the default calendar.
> 
> 
> Here is a link for the RFC 5545 spec, but I warn you it is a lot, and you 
> really don't need to know all of it. The example I send you will teach you 
> more than anything else: 
> https://datatracker.ietf.org/doc/html/rfc5545#section-3.7
> 
> Bob S
> 
> 
> On Sep 19, 2022, at 08:43 , Graham Samuel via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Folks, I have not been following this list with great attention for the last 
> few months, nor doing active LC development, so I’ve missed a lot, but now I 
> have been asked to look into the possibility of an app that reads and writes 
> to standard calendars, particularly the kind used by Apple. I believe their 
> apps for Mac and iOS use some kind of open standard, and if so there must be 
> a useable API.
> 
> To save me lots of research, can I ask if anyone has worked with calendars 
> like these, and if so, can they point me to an easy way to get LC to talk to 
> them.
> 
> TIA
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Calendar interfaces

2022-09-19 Thread Bob Sneidar via use-livecode
Hi Graham. I was just looking at this myself. I think the best way to work with 
calendars is to send an email with an iCalendar file (.ics). I will send you a 
zip file of an example with attachment to your personal email. It's pretty 
straight forward, but the file attachment is base 64 encoded binary so be aware 
of that. .ics files are simply specially formatted text files. Most email 
clients when they detect an ics file with an invite embedded will give you an 
accept/decline option.

That being said, I know that MacOS calendar app is Applescript enabled, and if 
you open an ics file in windows with the command prompt, it will launch the 
default calendar app and add the event to the default calendar.


Here is a link for the RFC 5545 spec, but I warn you it is a lot, and you 
really don't need to know all of it. The example I send you will teach you more 
than anything else: https://datatracker.ietf.org/doc/html/rfc5545#section-3.7

Bob S


On Sep 19, 2022, at 08:43 , Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Folks, I have not been following this list with great attention for the last 
few months, nor doing active LC development, so I’ve missed a lot, but now I 
have been asked to look into the possibility of an app that reads and writes to 
standard calendars, particularly the kind used by Apple. I believe their apps 
for Mac and iOS use some kind of open standard, and if so there must be a 
useable API.

To save me lots of research, can I ask if anyone has worked with calendars like 
these, and if so, can they point me to an easy way to get LC to talk to them.

TIA

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Calendar interfaces

2022-09-19 Thread Graham Samuel via use-livecode
Folks, I have not been following this list with great attention for the last 
few months, nor doing active LC development, so I’ve missed a lot, but now I 
have been asked to look into the possibility of an app that reads and writes to 
standard calendars, particularly the kind used by Apple. I believe their apps 
for Mac and iOS use some kind of open standard, and if so there must be a 
useable API.

To save me lots of research, can I ask if anyone has worked with calendars like 
these, and if so, can they point me to an easy way to get LC to talk to them.

TIA

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode