Re: Scripting calendar - UIDs and moving from one cal to another
Re: Scripting calendar - UIDs and moving from one cal to another
- Subject: Re: Scripting calendar - UIDs and moving from one cal to another
- From: Shane Stanley <email@hidden>
- Date: Tue, 01 Dec 2015 09:47:03 +1100
On 1 Dec 2015, at 2:09 AM, Jay Louvion <email@hidden> wrote:
>
> Now. I have noticed the UID seem to be unique, regardless of the calendar.
Usually, but not necessarily. Events actually have two ids, a calendarItemIdentifier and a calendarItemExternalIdentifier. The former is unique, although it can change when calendars are synced. The latter is what is exposed to scripting.
The documentation has this to say about the calendarItemExternalIdentifier:
> This identifier allows you to access the same event or reminder across multiple devices.
>
> There are some cases where duplicate copies of a calendar item can exist in the same database:
>
> • A calendar item was imported from an ICS file into multiple calendars
>
> • An event was created in a calendar shared with the user and the user was also invited to the event
>
> • The user is a delegate of a calendar that also has this event
>
> • A subscribed calendar was added to multiple accounts
>
> In such cases, you should choose between calendar items based on other factors, such as the calendar or source.
>
> Recurring event identifiers are the same for all occurrences. If you wish to differentiate between occurrences, you may want to use the start date.
>
> For Exchange servers, the identifier is different between iOS and OS X and different between devices for reminders.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden