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: Stan Cleveland <email@hidden>
- Date: Mon, 10 Sep 2012 13:52:22 -0700
On Sep 9, 2012, at 11:10 PM, Nathan Bailey wrote:
> Brilliant! Thanks Axel, that works great - I can now export the
> calendars and use them for reports/analysis :-)
Hi Nathan,
Am I the only one who dislikes deeply-nested code? The script below is unchanged, except for removal of unneeded nesting of 'tell' commands.
Stan C.
set myNames to {"Work A", "Work B"}
repeat with myName in myNames
tell application "System Events"
tell process "iCal"
tell button 1 of tool bar 1 of window 1
click
tell (first row where (value of text field 1 is myName)) of outline 1 of scroll area 1 of pop over 1
select
end tell
click
end tell
click menu item "Export…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
click button "Export" of sheet 1 of window 1
end tell
end tell
end repeat
_______________________________________________
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