• 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 Hide/Show Calendar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iCal Hide/Show Calendar


  • Subject: iCal Hide/Show Calendar
  • From: Gil Dawson <email@hidden>
  • Date: Thu, 8 Jul 2010 16:50:56 -0700

Is there a way for an AppleScript program to hide/show a particular calendar in iCal V4.0.3 (Snow Leopard 10.6.4)?  

There's a checkbox right next to the name of the calendar that does exactly what I want -- with the mouse.  I'd like to control that checkbox from an AppleScript program.

The iCal dictionary for a calendar doesn't seem to have a property corresponding to that checkbox:

calendar n : This class represents a calendar.
elements
contains todos, events.
properties
name text : This is the calendar title.
color RGB color : The calendar color.
uid text, r/o : An unique calendar key
writable boolean, r/o : This is the calendar title.
description text : This is the calendar description.

The UI Element Inspector identifies that particular checkbox as follows:

<AXApplication: “iCal”>
 <AXWindow: “iCal”>
  <AXScrollArea>
   <AXOutline>
    <AXRow>
     <AXCheckBox: “”>

Attributes:
   AXRole:  “AXCheckBox”
   AXRoleDescription:  “check box”
   AXHelp:  “(null)”
   AXValue:  “1”
   AXEnabled:  “1”
   AXFocused (W):  “0”
   AXParent:  “<AXRow>”
   AXWindow:  “<AXWindow: “iCal”>”
   AXTopLevelUIElement:  “<AXWindow: “iCal”>”
   AXPosition:  “x=129 y=476”
   AXSize:  “w=20 h=0”
   AXTitle:  “”

Actions:
   AXPress - press

Is there perhaps a way to translate this information into, say, a System Events command?

--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

  • Follow-Ups:
    • Re: iCal Hide/Show Calendar
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: text to aiff audio script step (DealTek)
  • Next by Date: Odd date string
  • Previous by thread: Re: text to aiff audio script step
  • Next by thread: Re: iCal Hide/Show Calendar
  • Index(es):
    • Date
    • Thread