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