• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: due dates, reminders, & AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: due dates, reminders, & AppleScript


  • Subject: Re: due dates, reminders, & AppleScript
  • From: Takaaki Naganoya <email@hidden>
  • Date: Thu, 24 Sep 2015 14:48:51 +0900

Thanks Shane, I posted whole list with figures to my blog!

http://piyocast.com/as/archives/3725

# Game City is nice place for me....

--
Takaaki Naganoya
Piyomaru Software
http://piyocast.com/as
email@hidden



--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/



2015/09/24 14:10、Shane Stanley <email@hidden> のメール:

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:

Use the alarmWithAbsoluteDate: and alarmWithRelativeOffset: class methods to create an alarm and use the properties to set information about an alarm.

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.

-- 
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
References: 
 >Re: due dates, reminders, & AppleScript (From: Takaaki Naganoya <email@hidden>)
 >Re: due dates, reminders, & AppleScript (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: TextEdit rtfd problem
  • Next by Date: Re: TextEdit rtfd problem
  • Previous by thread: Re: due dates, reminders, & AppleScript
  • Next by thread: tags manipulation
  • Index(es):
    • Date
    • Thread