Re: due dates, reminders, & AppleScript
Re: due dates, reminders, & AppleScript
- Subject: Re: due dates, reminders, & AppleScript
- From: Shane Stanley <email@hidden>
- Date: Thu, 24 Sep 2015 15:10:33 +1000
On 24 Sep 2015, at 2:04 PM, Takaaki Naganoya <email@hidden> wrote:
set eventStore to current application's EKEventStore's alloc()'s initWithAccessToEntityTypes:2 --Deprecated in OS X 10.9 ? (* Enums: { EKEntityTypeEvent:0, EKEntityTypeReminder:1} But this should be 2 or greater *)
The docs are wrong on this. The enums are actually EKEntityMaskEvent:1, EKEntityMaskReminder:2. set enterAlarm to current application's EKAlarm's alloc()'s init()
The documents say:
So change the above line to:
set enterAlarm to current application's EKAlarm's alarmWithRelativeOffset:0
And then your code seems to work fine here. Unfortunately I can't visit Game City to see if the reminder fires ;-)
It's pretty cool that you add geofence alarms like that, though.
|
_______________________________________________
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