• 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: Two Windows in the Calendar app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two Windows in the Calendar app?


  • Subject: Re: Two Windows in the Calendar app?
  • From: Gil Dawson <email@hidden>
  • Date: Thu, 18 May 2017 15:59:14 -0700

You may recall that I wrote, on May 17, 2017, at 2:38 PM, regarding Apple's Calendar app:

I added (yet another) Google calendar to my collection, and it somehow got added into a separate window.  It works fine, in that I can manually add or delete events and the changes appear on the Google calendar web page after a few seconds; also vice versa.

The problem is, I cannot figure out how to address the Calendar app's second window via AppleScript.  

I've been trying out Shane's CalendarLib.  Very nice tool, especially the repeating events feature.  Alas, it confirms that the calendar in that second window isn't visible even to Shane's CalendarLib.

use script "CalendarLib" version "1.1.1" -- put this at the top of your scripts
use scripting additions

-- fetch properties of events for next week
set theStore to fetch store
set theCals to fetch calendars {} cal type list {} event store theStore
set d1 to current date
set d2 to d1 + 7 * days
repeat with aCal in theCals
set theEvents to fetch events starting date d1 ending date d2 searching cals {aCal} event store theStore
repeat with anEvent in theEvents
log "calendar_name=" & ¬
calendar_name of (event info for event anEvent) 
--> Only the names of calendars on my app's "Calendar" window appear here.
--> The name of my new calendar (in a second window) doesn't.
end repeat
end repeat


I wonder how I can access this new calendar?

Any ideas on how to research this question?

--Gil



 _______________________________________________
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: 
 >Two Windows in the Calendar app? (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: Comma delimited paragraph
  • Next by Date: Getting Tab Index and Window ID in Safari
  • Previous by thread: Two Windows in the Calendar app?
  • Next by thread: Comma delimited paragraph
  • Index(es):
    • Date
    • Thread