iCal Mystery -- description of calendar when description is missing value
iCal Mystery -- description of calendar when description is missing value
- Subject: iCal Mystery -- description of calendar when description is missing value
- From: David Crowe <email@hidden>
- Date: Tue, 7 Feb 2006 22:32:14 -0700
Title: iCal Mystery -- description of calendar when
description i
Almost all of my calendar names in iCal are 'missing value', as
shown by:
tell application "iCal"
description of every calendar
end tell
--> {missing value, missing value, missing
value....}
But if I try to get the description of one calendar I have a
problem:
tell application "iCal" to tell calendar
1
set x
to
description
x
end
tell
--> ERROR: Variable x
is not defined
The best I have come up with to handle this situation is:
tell application "iCal" to tell calendar
1
set CalendarDescription to
description
try
CalendarDescription
on error
set
CalendarDescription
to ""
end try
CalendarDescription
end tell
--> ""
Is this just something I need to live with, or is there a better
way?
- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden