• 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
Re: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
      • From: Nathan Bailey <email@hidden>
References: 
 >selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ] (From: Nathan Bailey <email@hidden>)

  • Prev by Date: ATPM Desktop Picture Archive Reporter
  • Next by Date: Selecting all mailboxes in a Mail message viewer
  • Previous by thread: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
  • Next by thread: Re: selecting a calendar in iCal on Lion? [ to export selected calendars to an ICS file ]
  • Index(es):
    • Date
    • Thread