Anyone have a Code example to create in iCal / ICS file in Xojo without a plugin?

I’m looking to create a very basic ICS file in Xojo that can be used to send.

I’d just want the following:

Meeting Description
Meeting Date/Time
Meeting Duration
Who the meeting is with

ICS files are just text files. You should be able to build it by inserting strings into a template if your needs are that simple. Examples here:

Something like:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:uid1@example.com
DTSTAMP:19970714T170000Z
ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com
ATTENDEE;CN=John Smith:MAILTO:john.smith@example.com
ATTENDEE;CN=Peter Purvis:MAILTO:peter.purvis@example.com
DTSTART:19970714T170000Z
DTEND:19970715T040000Z
SUMMARY:Event title
END:VEVENT
END:VCALENDAR

A good way of doing this is to create an entry in Calendar and then export an ICS file, use that as the template and substitute parts as required.

2 Likes
1 Like

Thanks Greg.

I’m not doing it from a web app. I think I can create something using the info posted by Ian.

The project contains a class you can use anywhere

3 Likes