Re: Recurring Reminders/Calendar Events?
Re: Recurring Reminders/Calendar Events?
- Subject: Re: Recurring Reminders/Calendar Events?
- From: Shane Stanley <email@hidden>
- Date: Sun, 01 Mar 2015 13:47:01 +1100
On 27 Feb 2015, at 1:04 am, Alex Hall <email@hidden> wrote:
>
> A year or so ago I was searching for a way to access recurring events in Calendar/Reminders through Applescript. I couldn't, since events would be returned only if the original date was asked for. A recurring event on every Wednesday, for instance, would not be seen by any AS method asking for events for next week, since the event would *recur* next week, but was created in the past.
>
> My question is: given the use of ObjC, and the updates to AS itself, in the Mavericks and Yosemite releases, is this now possible?
The limitation reflects the underlying implementation, not scripting. So whether you use AppleScript, AppleScriptObjC, Objective-C or Swift, you need to get all the events within a range that covers the initial date, and iterate until you find the one you want.
> Secondarily, can it be done without launching Calendar/Reminders? That's not a big deal, but it would be nice.
You can if you use AppleScriptObjC, but it's not something for the faint-hearted -- it's a relatively convoluted API.
> It doesn't seem like much is being written online about these new capabilities, and anything I find for what I'm looking for talks about iCal and 10.4-10.6 using Applescript 2.
I'm not sure what capabilities you mean, but if you mean AppleScriptObjC and calendars, that probably reflects the fact that the API is convoluted, and that about the only thing it buys you is the ability to work without the app showing.
> It seems like scripting is getting less popular, at least that's my impression.
Could be, but the doomsdayers' predictions seem to be running at about the same rate as always.
--
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