• 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
iCal Mystery -- description of calendar when description is missing value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: iCal Mystery -- description of calendar when description is missing value
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: clipboardICAS-1.02 ApplesScript update
  • Next by Date: Re: App scripts in system script menu
  • Previous by thread: clipboardICAS-1.02 ApplesScript update
  • Next by thread: Re: iCal Mystery -- description of calendar when description is missing value
  • Index(es):
    • Date
    • Thread