Re: Calendar - the big hangover
Re: Calendar - the big hangover
- Subject: Re: Calendar - the big hangover
- From: Bill Vlahos <email@hidden>
- Date: Tue, 03 Nov 2015 22:33:37 -0800
- X_v_e_cd: a24e66095ef55c59cc2bd1b622bd4b86
- X_v_r_cd: efbe61aff7423d644c58904150db0987
I have 2 bug reports <http://bugreport.apple.com> regarding AppleScript in Calendar originally reported for Yosemite over a year ago. These are 18727059 and 18726454. No one from Apple has ever commented on them in any way although I did check with a friend at Apple who said that is the correct place to report bugs and they were able to see them.
Bug report 18727059 is partially fixed in El Capitan. A new calendar event created via AppleScript is visible right away. However, when updating an existing event (such as changing the duration, etc.) the event still doesn’t update on screen unless some action is done to update the screen.
Bug report 18726454 is about deleting a calendar event. An earlier part of this email chain says that deleting an event via AppleScript takes a very long time. I’m curious about how long a time it takes. From my testing I never see the event deleted from the visible calendar unless I quit Calendar and relaunch it. If I don’t quit Calendar and relaunch it the event never appears to be deleted.
I’ve created an open source project for scripting calendar applications on GitHub https://github.com/bvlahos/Scripting-Calendars. I have sample code for Calendar and Microsoft Outlook for the Mac. The AppleScripts worked fine with Calendar on Mac OS 10.9 and continue to work fine with Outlook. It is pathetic that Apple doesn’t fix a core API in their own app.
Here is the AppleScript I use to delete a calendar event. Please let me know if there is something else I should be doing.
Run the following AppleScript (substituting the correct event id and calendar id).
tell application "Calendar"
delete event id "337F547A-64BB-47A8-A71F-A815775340C5" of calendar id "21DCCC2E-27A5-4861-B9A3-164893B4AED4"
end tell
Bill Vlahos
> On Nov 3, 2015, at 2:35 PM, Shane Stanley <email@hidden> wrote:
>
> On 4 Nov 2015, at 7:33 AM, Jay Louvion <email@hidden> wrote:
>>
>> My conclusion is that there is some kind of validation process taking place when a script addresses the Calendar app to create or delete an event - though not when this is done manually.
>
> Whatever happens, chances are it also happens when you do it manually -- don't confuse the appearance (or disappearance) from the UI with the process being completed.
>>
>> Where would you guys send a formal bug report regarding this issue, since I believe the applescript users lists is not really moderated “officially”, right?
>
> <http://bugreport.apple.com>. You will need to set up a free developer account first (which isn't exactly intuitive, unfortunately).
>
> --
> 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
_______________________________________________
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