Re: Applescript-users Digest, Vol 3, Issue 79
Re: Applescript-users Digest, Vol 3, Issue 79
- Subject: Re: Applescript-users Digest, Vol 3, Issue 79
- From: John M <email@hidden>
- Date: Wed, 8 Feb 2006 09:08:19 +0000
Hi David,
Your first option works as you are getting a list returned. A singe
variable with 'missing value' returns an error. You could try
coercing the data to a variable (like text or list).
tell application "iCal"
set x to (description of calendar 1) as list
x
end tell
As Paul Berkowitz says this is not the name of the calendar.
John M
On 8 Feb 2006, at 08:34, email@hidden
wrote:
From: David Crowe <email@hidden>
Subject: iCal Mystery -- description of calendar when description is
missing value
To: email@hidden
Message-ID: <p0623097ec00f31c2e9c9@[192.168.1.14]>
Content-Type: text/plain; charset="us-ascii"
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
_______________________________________________
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