Ical question on Getting current recurring event
Ical question on Getting current recurring event
- Subject: Ical question on Getting current recurring event
- From: Jason Bourque <email@hidden>
- Date: Mon, 12 Mar 2007 10:45:27 -0400
- Thread-topic: Ical question on Getting current recurring event
Hello,
I am trying to get holidays which are on specific date. But the holidays are
recurring and ical doesn't show them on the date from a script
For example I should be able to get this event with the following
The first now works but gets the wrong year but the second doesn't. Any
ideas?
set now to date "Monday, November 11, 2002 12:00:00 AM"
-- set now to date "Thursday, January 11, 2007 12:00:00 AM"
tell application "iCal"
first event in calendar "US Holidays" whose start date = now
end tell
{uid:"6BF1B371-0F0E-436B-8ACE-7D320022FD12", location:missing value,
url:missing value, sequence:1,
recurrence:"FREQ=YEARLY;INTERVAL=1;BYMONTH=11", excluded dates:{}, allday
event:true, start date:date "Monday, November 11, 2002 12:00:00 AM",
class:event, summary:"Veteran's Day", stamp date:date "Friday, September 30,
2005 6:48:54 PM", end date:date "Tuesday, November 12, 2002 12:00:00 AM",
description:missing value, status:none}
Jason Bourque
_______________________________________________
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