• 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: Scripting iCal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting iCal


  • Subject: Re: Scripting iCal
  • From: Michael Grant <email@hidden>
  • Date: Wed, 4 Feb 2004 15:53:13 -0600

On Feb 4, 2004, at 2:44 PM, Ben Gummer wrote:

Hi everyone,
I am trying to write an applescript that makes a new item with a
certain start time, summary etc. I have tried the following code but it
doesn't work.

tell application "iCal"
set theItem to (make new event with properties {start date = date
"Friday, 6 February 2004 7:35:00 AM", summary = "TheTitle"})
activate
show theItem
end tell


You need to tell iCal where to make the new event, like this:

set newEvent to (make event at end of events of whichCal with properties {description:theNotes, summary:theTitle, start date:startDate})

(where the variables whichCal, theNotes, theTitle, and startDate are all defined earlier in the script)

Michael

--
Where are we going? And what am I doing in this handbasket?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Scripting iCal (From: Ben Gummer <email@hidden>)

  • Prev by Date: Re: Scripting iCal
  • Next by Date: Re: FileMaker Send Apple Event to run stay open app
  • Previous by thread: Re: Scripting iCal
  • Next by thread: Select Highlighted Messages in Mail
  • Index(es):
    • Date
    • Thread