How do I determine the date OS X Calendar is viewing?
How do I determine the date OS X Calendar is viewing?
- Subject: How do I determine the date OS X Calendar is viewing?
- From: Bill Vlahos <email@hidden>
- Date: Sat, 28 Feb 2015 11:25:48 -0800
I can scroll the Mac OS X Calendar application to a specific date using this command: view calendar at date (“January, 1, 2015”)
How can I query the date the calendar is currently viewing and set that to a variable?
There is a bug in Yosemite adding a calendar event via AppleScript. It creates the event but doesn’t automatically update the screen with that event. (Apple Bug report 18727059).
I discovered that if I scroll the calendar window more than a month before the event and then create the event it gets displayed correctly. So a hack for now would be to (1) scroll the calendar to the past and (2) thenI create the event then (3) restore the calendar view to what it was. It will at least show the event on the calendar even if the calendar window will do a “weird” display scroll first.
Note: I’ve heard that Apple won’t be fixing this bug in Yosemite (or lots of other AppleScript bugs) because users aren’t complaining. This bodes very badly for the future of AppleScript.
Thank you, Bill Vlahos |
_______________________________________________
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