iCal Hide/Show Calendar
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 properties name text : This is the calendar title. 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