Re: Syntax for make new event in iCal?
Re: Syntax for make new event in iCal?
- Subject: Re: Syntax for make new event in iCal?
- From: david <email@hidden>
- Date: Fri, 27 Sep 2002 14:55:35 -0400
On Sunday, September 22, 2002, at 08:50 PM, Jim Burton wrote:
The following could use some comments and streamlining, but it works:
property iCalendars : {}
tell application "iCal"
set x to calendars
repeat with i from 1 to count of x
copy title of item i of x to end of iCalendars
end repeat
end tell
set theSDay to "14"
set theSMon to "September"
set theSYear to "2002"
set theSTime to "1:00 PM"
set theEDay to "14"
set theEMon to "September"
set theEYear to "2002"
set theETime to "2:00 PM"
set theCalName to "Home"
set i to 1
repeat with anitem in iCalendars
if item i of iCalendars is equal to theCalName then
set theNum to i
end if
set i to i + 1
end repeat
set currentCal to item theNum of x
set theSummary to "This is a summary"
set theDescrip to "This is a description"
set tempDate to theSDay & " " & theSMon & " " & theSYear & " " &
theSTime as string
set theDate to date tempDate
set tempDate to theEDay & " " & theEMon & " " & theEYear & " " &
theETime as string
set otherDate to date tempDate
-- set recur to "weekly" as string
tell application "iCal"
make event at end of events of currentCal with properties {start
date:theDate, end date:otherDate, summary:theSummary,
description:theDescrip, status:confirmed}
end tell
i'm basically trying to add all-day events to app iCal with AppleScript
i though i could use Class event Properties:
start date
end date
it would be nice to set the all-day event to true
any help in setting all-day events would be appreciated
TIA
david in Maine
_______________________________________________
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.