• 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
Variables & quotes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Variables & quotes
      • From: Michelle Steiner <email@hidden>
    • Re: Variables & quotes
      • From: Steve Thompson <email@hidden>
  • Prev by Date: Choose Folder
  • Next by Date: Applescript compatibility under Snow Leopard
  • Previous by thread: Re: Choose Folder
  • Next by thread: Re: Variables & quotes
  • Index(es):
    • Date
    • Thread