Variables & quotes
Variables & quotes
- Subject: Variables & quotes
- From: Jeremy Matthews <email@hidden>
- Date: Wed, 23 Sep 2009 15:35:00 -0500
I'm trying to present a list of iCal calendars, and then create an
event from the calendar chosen...not sure what I am missing....
tell application "iCal"
set theCalendarNames to (title of every calendar)
end tell
set myresult to (choose from list theCalendarNames with prompt "Choose
the calendar to receive events:")
-- dialog to confirm calendar chosen
-- display dialog "" & myresult
tell application "iCal"
tell calendar myresult
set theDate to current date
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 _______________________________________________
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