how do i get all (iCal) events for a specified date via applescript
how do i get all (iCal) events for a specified date via applescript
- Subject: how do i get all (iCal) events for a specified date via applescript
- From: Ken Victor <email@hidden>
- Date: Tue, 08 Mar 2011 12:14:13 -0800
On Mar 8, 2011, at 12:01 PM, Deivy Petrescu wrote: On Mar 6, 2011, at 18:43 , Ken Victor wrote:
how can i get all the events that (will) occur on a specified (future) date, including repeating events? i can’t see anyway to do this, other than parsing the recurring field and then moving forward in time from the start date to see if the event will occur on the specified date.
thanx,
ken
ps. perhaps i should have stated explicitly that i’d like to be able to do this via applescript and not via code. _______________________________________________
here:
tell application "iCal" to tell calendars to get every event
Now, when you are more explicit about what you want from each event, you can get a better answer.
Deivy Petrescu email@hidden
thank you Deivy. i understand that much. but once i have all the events, how can i filter that to be only those events that will occur on a specific date, e.g., 3/15/11. for non-repeating (non-recurring) events, this is rather straight-forward as i can simply check the start date (e.g. for 3/15/11). but repeating events have a start date that is the first date that the event occured/was to occur. e.g., an event that occurs for the first time on 3/8/11 and repeats weekly will have a start date (and an end date) of 3/8/11. it will occur on 3/15/11 (etc.), but i don’t see how to determine that with applescript. it could be determined (not so trivially) via programming by parsing and computing using the recurring field of the event. but i’d rather not have to write a program to do this.
thanx, ken
|
_______________________________________________
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