• 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
How do I determine the date OS X Calendar is viewing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: OFFTOPIC: Safari spamming
  • Next by Date: Re: XML script library?
  • Previous by thread: Re: OFFTOPIC: Safari spamming
  • Index(es):
    • Date
    • Thread