On Sep 23, 2009, at 1:35 PM, Jeremy Matthews wrote:
not sure what I am missing…. Two things. First is that choose from list returns a list, so you need to get item 1 from it. Secondly, you don’t need "at end”.
set theDate to current date tell application “iCal” set the CalendarNames to title of calendars whose writable is true set myresult to item 1 of (choose from list CalendarNames with prompt "Choose the calendar to receive events:") tell calendar myresult make new event at end with properties ¬ {description:"New Event", summary:"Event Summary", location:"Orlabdo", start date:theDate, allday event:true} end tell end tell
-- Michelle -- "I'll do the best I can do because that's the best I can do!"
|