Re: Problem with 'to-dos' in iCal
Re: Problem with 'to-dos' in iCal
- Subject: Re: Problem with 'to-dos' in iCal
- From: cheshirekat <email@hidden>
- Date: Sun, 1 Aug 2004 04:38:43 -0600
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
Now to get some ice cream before taking a nap. I wish I could find a
gallon of Spumoni to buy.
cheshirekat
--
Music is your own experience, your own thoughts, your wisdom. If you
don't live it, it won't come out of your horn. They teach you there's a
boundary line to music. But, man, there's no boundary line to art.
- Charlie Parker (1920-1955), U.S. jazz musician. quoted in Children of
Albion: Poetry of the Underground in Britain, "Afterwords," sct. 3, ed.
Michael Horovitz (1969).
* 867 PowerBook G4 * OS X 10.2.8 * 768 MB Ram *
* Addictions: iTunes * AppleScript * Mike's Cards * FileMaker Pro *
_______________________________________________
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.