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

iCal event scripting


  • Subject: iCal event scripting
  • From: "John Tuttle" <email@hidden>
  • Date: Mon, 12 May 2003 13:42:43 -0500

Here's a new one... for me at least.
I've been working on basic iCal scripting and have hit an interesting
glitch.

The following script will give me all of the information requested,
however, the creation of a new event doesn't do anything in iCal, nor
does it return an error.

Any ideas out there?

Script:

tell application "iCal"
set calcount to count of calendars
set x to 1
set cal_list to "List of Calendars
"
repeat calcount times
set eventcount to count of events of calendar x
set cal_list to cal_list & "
" & x & " " & title of calendar x & " - " & eventcount & " events"
set x to x + 1
end repeat

set myevent to summary of event 1 of calendar 1
set mydate to start date of event 1 of calendar 1
set mydate to date "Monday, May 12, 2003 9:00:00 AM"
make new event at calendar 1 with data {summary:"New Item", start
date:mydate, status:none, allday event:true}
end tell

--
John Tuttle
Yourexpedition


--
John Tuttle
Vice President of Technology
Yourexpedition

612.333.1209
http://www.yourexpedition.com

Providing inspiration and guidance to succeed in lifes expeditions.
_______________________________________________
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.

  • Prev by Date: Re: Folder or a package ?
  • Next by Date: Re: Order of operations (was: Eigenvalues &/or eigenvectors,
  • Previous by thread: Updating windows in Mail
  • Next by thread: JD Off
  • Index(es):
    • Date
    • Thread