Re: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
Re: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
- Subject: Re: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
- From: Axel Luttgens <email@hidden>
- Date: Sun, 09 Sep 2012 17:29:04 +0200
Le 9 sept. 2012 à 09:12, Nathan Bailey a écrit :
> [...]
>
> I can't work out how to graphically address the "[Calendars]"
> button/list in the toolbar to manually select the calendar I want
> (automator mentions the toolbar but this doesn't seem addressable in
> AS?)
>
> How can I select a calendar in iCal on Lion?
Hello Nathan,
Please find hereafter a skeleton of how this could be achieved through UI scripting.
As usual, this is terribly fragile; for example, the targeted calendar must not be hidden in the calendar list.
HTH,
Axel
set CalName to "Work A"
tell application "System Events"
tell application process "iCal"
tell window 1
tell tool bar 1
tell button 1
click
tell pop over 1
tell scroll area 1
tell outline 1
tell (first row where (value of text field 1 is CalName))
select
end tell
end tell
end tell
end tell
click
end tell
end tell
end tell
end tell
end tell
_______________________________________________
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