| Home | Browse Source | Plugins MacOS X Leopard | Download | Sample
- Platform: Mac OS X 10.5
- Version: v11
- Type: Plugin
- Current Version: 3.3.2
iCal
- Summary
This plugin is a Mac OS utility to manipulate iCal from 4D, using the CalCalendarStore class API.
- Change List for 3.3
added the following commands.
iCal Count event alarms
iCal Get event alarm
iCal Remove event alarm
iCal Set event alarm
iCal Count task alarms
iCal Get task alarm
iCal Remove task alarm
iCal Set task alarm
Fixed iCal Set task property which was not working.
- Change List for 3.2
Fixed iCal Set alarm property which was not working.
- Change List for 3.1
the "get" command will NOT overwrite the receiver variable, if the access has failed because of invalid id, etc.
this was a new bug introduced in 3.0.
iCal_Get_event_property
iCal_Get_alarm_property
iCal_Get_task_property
iCal_app_Get_event_property
iCal_app_Get_task_property
- Change List for 3.0
Commands have been added to receive notification from the system dispatch.
iCal Set notification method
iCal Get notification method
- Change List for 2.1
Commands have been added to better manipulate the iCal application.
iCal SHOW EVENT
iCal SHOW TASK
iCal SET VIEW
iCal SHOW DATE
Command now accepts an optional $2, where the calendar names are returned.
iCal GET CALENDAR LIST
Command now woks with kmapper.
iCal Get alarm property
iCal Set alarm property
Fixed crash when url is not a file url.
iCal Get alarm property
iCal Set alarm property
Fixed crash when dates are invalid.
iCal Create event
Fixed crash when certain fields are empty.
iCal Get event property
Important Notice: Due to (suspected) API restriction, when events or tasks are modified externally, subsequent calls in the same 4D process to iCal Get event property, etc. will return the old value.
You need to call the function in a new 4D process to get the latest information.
Consequently, for debug purposes, 2 commands, that talk directly to the iCal application have been added.
iCal app Get event property
iCal app Get task property
Event Commands
iCal Create event
event:=iCal Create event (calendar; startDate; endDate)
calendar (TEXT)
startDate (TEXT)
The start date in text format. Use the utility command iCal Make date to composite date, time and timezone. Must not be after the end date.endDate (TEXT)
The end date in text format. Use the utility command iCal Make date to composite date, time and timezone. Must not be before the start date.
event (TEXT)
- Discussion
iCal Get event property
success:=iCal Get event property (event; key; value; date)
event (TEXT)
key (TEXT)
The name of the property to read.
You can use a iCal Event Properties constant for key.
value (TEXT)
date (TEXT)
Optional argument to specify one instance of a recurring event.
success (LONGINT)
- Discussion
iCal Remove event
success:=iCal Remove event (event)
event (TEXT)
success (LONGINT)
- Discussion
iCal Set event property
success:=iCal Set event property (event; key; value; date)
event (TEXT)
key (TEXT)
The name of the property to set.
You can use a iCal Event Properties constant for key.
value (TEXT)
date (TEXT)
Optional argument to specify one instance of a recurring event.
success (LONGINT)
- Discussion
Task Commands
iCal Create task
task:=iCal Create task (calendar; dueDate)
calendar (TEXT)
dueDate (TEXT)
The due date in text format. Use the utility command iCal Make date to composite date, time and timezone.
task (TEXT)
- Discussion
iCal Get task property
success:=iCal Get task property (task; key; value)
task (TEXT)
key (TEXT)
The name of the property to read.
You can use a iCal Task Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
iCal Remove task
success:=iCal Remove task (task)
task (TEXT)
success (LONGINT)
- Discussion
iCal Set task property
success:=iCal Set task property (task; key; value)
task (TEXT)
key (TEXT)
The name of the property to set.
You can use a iCal Task Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
Calendar Commands
iCal Create calendar
calendar:=iCal Create calendar (title; color)
title (TEXT)
color (TEXT)
An optional parameter to assign a color to this calendar. If omitted, iCal will automatically choose an index color.
calendar (TEXT)
- Discussion
iCal Get calendar property
success:=iCal Get calendar property (calendar; key; value)
calendar (TEXT)
key (TEXT)
The name of the property to read.
You can use a iCal Calendar Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
iCal Remove calendar
success:=iCal Remove calendar (calendar)
calendar (TEXT)
success (LONGINT)
- Discussion
iCal Set calendar property
success:=iCal Set calendar property (calendar; key; value)
calendar (TEXT)
key (TEXT)
The name of the property to set.
You can use a iCal Calendar Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
Calendar Store Commands
iCal GET CALENDAR LIST
iCal GET CALENDAR LIST (calendarIds; calendarNames)
calendarIds (ARRAY)
calendarNames (ARRAY)
On return, an array of calendar names.- Discussion
iCal QUERY EVENT
iCal QUERY EVENT (startDate; endDate; calendars; events)
startDate (TEXT)
endDate (TEXT)
An end date.calendars (ARRAY)
An array of calendar IDs.events (ARRAY)
On return, an array of event IDs.- Discussion
iCal QUERY TASK
iCal QUERY TASK (dueDate; calendars; tasks)
dueDate (TEXT)
calendars (ARRAY)
An array of calendar IDs.tasks (ARRAY)
On return, an array of task IDs.- Discussion
Type Cast Commands
iCal GET COLOR
iCal GET COLOR (color; red; green; blue; alpha)
color (TEXT)
red (REAL)
The red component of this color.green (REAL)
The green component of this color.blue (REAL)
The blue component of this color.alpha (REAL)
The alpha component of this color.- Discussion
iCal GET DATE
iCal GET DATE (xml; date; time; offset)
xml (TEXT)
date (DATE)
The date component.time (TIME)
The time component.offset (LONGINT)
The different to GMT in seconds.- Discussion
iCal Make color
color:=iCal Make color (red; green; blue; alpha)
red (REAL)
green (REAL)
The green component value.blue (REAL)
The blue component value.alpha (REAL)
The alpha component value.
color (TEXT)
- Discussion
iCal Make color from index
color:=iCal Make color from index (index)
index (LONGINT)
color (TEXT)
- Discussion
iCal Make date
xml:=iCal Make date (date; time; timezone)
date (DATE)
time (TIME)
The time component.timezone (TEXT)
A timezone identifier, such as CET, JST, GMT, etc. Some verbose expressions are supported.
xml (TEXT)
- Discussion
Recurrence Rule Commands
iCal Remove event recurrence
success:=iCal Remove event recurrence (event)
event (TEXT)
success (LONGINT)
- Discussion
iCal Set event recurrence
success:=iCal Set event recurrence (event; type; interval; date; param1; param2; param3)
event (TEXT)
type (TEXT)
The recurrence type.
You can use a iCal Recurrence Rules constant for type.
interval (LONGINT)
date (TEXT)
The recurrence anchor date.param1 (TEXT)
The interpretation of this argument depends on the context.param2 (TEXT)
The interpretation of this argument depends on the context.param3 (TEXT)
The interpretation of this argument depends on the context.
success (LONGINT)
- Discussion
Alarm Commands
iCal Add alarm to event
success:=iCal Add alarm to event (event; alarm)
event (TEXT)
alarm (TEXT)
The alarm XML.
success (LONGINT)
- Discussion
iCal Add alarm to task
success:=iCal Add alarm to task (task; alarm)
task (TEXT)
alarm (TEXT)
The alarm XML.
success (LONGINT)
- Discussion
iCal Get alarm property
success:=iCal Get alarm property (alarm; key; value)
alarm (TEXT)
key (TEXT)
The property name to modify.
You can use a iCal Alarm Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
iCal Make alarm
alarm:=iCal Make alarm
alarm (TEXT)
- Discussion
iCal Set alarm property
success:=iCal Set alarm property (alarm; key; value)
alarm (TEXT)
key (TEXT)
The property name to modify.
You can use a iCal Alarm Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
Application Commands
iCal LAUNCH
iCal LAUNCH
- Discussion
iCal TERMINATE
iCal TERMINATE
- Discussion
iCal Direct Commands
iCal SET VIEW
iCal SET VIEW (view)
view (LONGINT)
You can use a iCal View Modes constant for view.
- Discussion
iCal SHOW DATE
iCal SHOW DATE (date)
date (DATE)
- Discussion
iCal SHOW EVENT
iCal SHOW EVENT (event)
event (TEXT)
- Discussion
iCal SHOW TASK
iCal SHOW TASK (task)
task (TEXT)
- Discussion
iCal app Get event property
success:=iCal app Get event property (event; key; value)
event (TEXT)
key (TEXT)
The name of the property to get.
You can use a iCal App Event Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
iCal app Get task property
success:=iCal app Get task property (task; key; value)
task (TEXT)
key (TEXT)
The name of the property to get.
You can use a iCal App Task Properties constant for key.
value (TEXT)
success (LONGINT)
- Discussion
Notification Commands
iCal Get notification method
success:=iCal Get notification method (method)
method (TEXT)
success (LONGINT)
- Discussion
iCal Set notification method
success:=iCal Set notification method (method)
method (TEXT)
success (LONGINT)
- Discussion
Alarm II Commands
iCal Count event alarms
success:=iCal Count event alarms (event; count)
event (TEXT)
count (LONGINT)
The number of alarms.
success (LONGINT)
- Discussion
iCal Count task alarms
success:=iCal Count task alarms (task; count)
task (TEXT)
count (LONGINT)
The number of alarms.
success (LONGINT)
- Discussion
iCal Get event alarm
success:=iCal Get event alarm (event; index; alarm)
event (TEXT)
index (LONGINT)
The alarm number, counting from 1.alarm (TEXT)
The alarm data, in XML.
success (LONGINT)
- Discussion
iCal Get task alarm
success:=iCal Get task alarm (task; index; alarm)
task (TEXT)
index (LONGINT)
The alarm number, counting from 1.alarm (TEXT)
success (LONGINT)
- Discussion
iCal Remove event alarm
success:=iCal Remove event alarm (event; index)
event (TEXT)
index (LONGINT)
The alarm number, counting from 1.
success (LONGINT)
- Discussion
iCal Remove task alarm
success:=iCal Remove task alarm (task; index)
task (TEXT)
index (LONGINT)
The alarm number, counting from 1.
success (LONGINT)
- Discussion
iCal Set event alarm
success:=iCal Set event alarm (event; index; alarm)
event (TEXT)
index (LONGINT)
The alarm number, counting from 1.alarm (TEXT)
The alarm data, in XML.
success (LONGINT)
- Discussion
iCal Set task alarm
success:=iCal Set task alarm (task; index; alarm)
task (TEXT)
index (LONGINT)
The alarm number, counting from 1.alarm (TEXT)
The alarm data, in XML.
success (LONGINT)
- Discussion
iCal Event Properties Constants
Event attendees (attendees)
Event calendar (calendar)
Event dateStamp (dateStamp)
Event endDate (endDate)
Event hasAlarm (hasAlarm)
Event isAllDay (isAllDay)
Event isDetached (isDetached)
Event location (location)
Event nextAlarmDate (nextAlarmDate)
Event notes (notes)
Event occurrence (occurrence)
Event startDate (startDate)
Event title (title)
Event url (url)
iCal Calendar Properties Constants
Calendar color (color)
Calendar isEditable (isEditable)
Calendar notes (notes)
Calendar title (title)
Calendar type (type)
iCal Task Properties Constants
Task calendar (calendar)
Task completedDate (completedDate)
Task dateStamp (dateStamp)
Task dueDate (dueDate)
Task isCompleted (isCompleted)
Task priority (priority)
Task title (title)
Task url (url)
iCal Alarm Properties Constants
Alarm absoluteTrigger (absoluteTrigger)
Alarm action (action)
Alarm emailAddress (emailAddress)
Alarm relativeTrigger (relativeTrigger)
Alarm sound (sound)
Alarm url (url)
iCal Recurrence Rules Constants
Recurrence Daily (Daily)
Recurrence Monthly (Monthly)
Recurrence Weekly (Weekly)
iCal View Modes Constants
Day View (0)
Week View (1)
Month View (2)
iCal App Event Properties Constants
Event stamp date (dateStamp)
Event end date (endDate)
Event allday event (isAllDay)
Event location (location)
Event description (notes)
Event recurrence (recurrence)
Event sequence (sequence)
Event start date (startDate)
Event status (status)
Event summary (title)
Event url (url)
iCal App Task Properties Constants
Task completion date (completedDate)
Task due date (dueDate)
Task description (notes)
Task priority (priority)
Task sequence (sequence)
Task stamp date (stampDate)
Task summary (title)
Task url (url)
iCal Notification Types Constants
Calendar Notification (Calendar Notification)
Event Notification (Event Notification)
Task Notification (Task Notification)