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


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

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