Re: Problem with 'to-dos' in iCal
Re: Problem with 'to-dos' in iCal
- Subject: Re: Problem with 'to-dos' in iCal
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 01 Aug 2004 09:04:06 -0700
On 8/1/04 3:38 AM, "cheshirekat" <email@hidden> wrote:
>
On Sat, Jul 31, 20041:56 PM, the following words from Paul Berkowitz
>
email@hidden, emerged from a plethora of SPAM ...
>
>
> iCal is just rife with wonky scripting. This
>
> work, however:
>
>
>
> tell application "iCal"
>
> set theCalendar to calendar 1
>
> tell theCalendar
>
> set theToDos to completion date of (every todo where its completion
>
> date > date "Friday, January 1, 1904 12:00:00 AM")
>
> end tell
>
> end tell
>
>
Thanks a lot Paul. I thought I had tried every whose variation. I think
>
the problem is that I keep trying to sound out my AS sentences - and the
>
whose clause is sometimes so far removed from my use of English that it
>
leaves me tongue tied. Yeah, I know it's only "English-like".
>
>
Since I always need to get the to do's that are incomplete, this is the
>
tongue twister I ended up with:
>
>
tell application "iCal"
>
set the cTarget to the first calendar whose title is "Home"
>
tell cTarget
>
set the toDoList to the summary of (every todo where not its
>
completion date is less than the (current date))
>
end tell
>
end tell
Yeah. It's absurd you can't do
set the toDoList to the summary of (every todo where its
completion date is not less than the (current date))
or
set the toDoList to the summary of every todo whose
completion date is greater than the (current date)
But that just results in {} . iCal scripting is also full of dozens of bugs:
start dates of all-day events made by AppleScript are wrong (a very
confusing mishmash of being set to the time that 00:00 would be GMT, then
"corrected" backwards to the start of the resulting day, then wrong by the
difference from GMT a second time, so you can end up with a time at 5 PM two
days earlier than it should be if you're in California, or 4 PM if the
date's in the winter); iSync always creates events that have no AppleScript
'stamp date' (missing value), and on and on. It's a mess. As far as I can
tell, bug reports are being ignored too.
--
Paul Berkowitz
_______________________________________________
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.