Re: Recurring Reminders/Calendar Events?
Re: Recurring Reminders/Calendar Events?
- Subject: Re: Recurring Reminders/Calendar Events?
- From: Shane Stanley <email@hidden>
- Date: Thu, 05 Mar 2015 15:48:52 +1100
On 5 Mar 2015, at 3:21 pm, Alex Hall <email@hidden> wrote:
>
> So, Yosemite only then? I'm okay with that. I'd love to support 10.9, but most of my (very small) user base is now on Yosemite, so I'll start here.
You might well be able to use it under Mavericks by putting it in a script library -- you can tell us :-)
>
> When I run this code in an un-saved script file, I get an empty dialog. You said I'd need to gran access to Calendars in System Preferences, but Script Editor doesn't appear in the list of apps that have requested calendar data. In fact, I see no requests at all. I've not yet used ObjC calls in a script, so I'm probably missing an obvious step. My first thought is that I must first save the file as a certain type, but I'm not sure what.
I don't think the problem is at your end. You could try running a normal Calendar.app script first to try to force the issue, but I recall having a similar problem. Of course, once an app's in there, it's hard to re-create the situation. Maybe someone will pipe in with a way to force an app to be added to the Calendars list.
OK, I saved it as an applet and ran it, and I got the question. So at least it shouldn't be a problem when you distribute it, although you'll need to lock it (and it will fail first time). Meanwhile you should probably add a check for the length() of theCalendars -- if it's 0, you didn't get access.
(I write this stuff in my own app, so I probably see slightly different behavior.)
> Again, I run into the odd lack of traffic on this topic when I search about it.
This is relatively new stuff, the documentation isn't always brilliant, and unless you're using my app, the lack of feedback can make writing some ASObjC harder than it should be. So it's unlikely a lot of people have tried it.
--
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