On 9/10/02 7:18 AM, "Robert Nicholson" <[EMAIL PROTECTED]> wrote:
> That's fine. However, I still do not understand why it fails to import to
> events that I have set for this Friday which aren't all day events nor are
> they holidays and nor do they have any assigned category.
>
> Why would this forget about events that have no assigned category?
>
> repeat with aEEvent in myEEvents
> -- Trick to remove the holidays : compare categories of the events
> -- TODO : check that the events has ONLY holidays categories
> set thecats to category of aEEvent
> set vacflag to false
> repeat with acat in thecats
> if (the ID of acat) is equal to theholcat then
> set vacflag to true
> end if
> end repeat
> set tmpVal to {}
> -- append raw properties to the list as list of records have their
> own syntax
> if vacflag is equal to false then
> set tmpVal to tmpVal & (get subject of aEEvent as Unicode text)
> set tmpVal to tmpVal & (get start time of aEEvent)
> set tmpVal to tmpVal & (get end time of aEEvent)
> set tmpVal to tmpVal & (get recurring of aEEvent)
> set tmpVal to tmpVal & (get recurrence of aEEvent)
> set (myEvList of me) to (myEvList of me) & tmpVal
> end if
> end repeat
That bit of script would not be omitting events without category
set thecats to category of aEEvent
set vacflag to false
repeat with acat in thecats
means that vacflag will stay false. So it must be earlier something you
don't quote here. The line at the top:
repeat with aEEvent in myEEvents
deals only with events that are in the list 'myEEvents'. so events without
categories must have omitted from that list.
How is that list formed?
--
Paul Berkowitz
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>