Re: Retrieving Entourage tasks and events that have been modified after a given date
Re: Retrieving Entourage tasks and events that have been modified after a given date
- Subject: Re: Retrieving Entourage tasks and events that have been modified after a given date
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 21 Jan 2004 19:29:17 -0800
On 1/21/04 6:07 PM, "Patrick Gerzanics" <email@hidden> wrote:
>
First of all, thanks to everyone who has answered my earlier questions
>
(especially Paul who appears to be the resident expert) and sorry for my
>
first question with the various scripting errors!
>
>
My newest quandary may simply be another 'you can't' kind of thing, but it
>
seems rather silly. I would like to retrieve the tasks and events modified
>
after a certain date like I can do with contacts:
>
>
i.e.
>
>
set eventList to every event where its modification date is greater than
>
(date "01/01/2004 12:00:00 AM")
>
>
and:
>
>
set taskList to every task where its modification date is greater than (date
>
"01/01/2004 12:00:00 AM")
>
>
Doing:
>
>
set contactList to every contact where its modification date is greater than
>
(date "01/01/2004 12:00:00 AM")
>
>
works fine.
>
>
However, 'modification date' does not seem to be an available property for
>
events and tasks and their does not appear to be an equivalent (at least
>
from the Entourage script dictionary). Is this just a rather obvious
>
oversight by the Entourage dev team? Or, is there another way to get the
>
same information?
>
>
Thanks again for any assistance!
Well, I shouldn't really, but ask again in few months. You're right - you
can't do it now - there's no modification date property of events, tasks,
notes - or groups. Only of contacts.
The dictionary is excellent, Patrick - no errors (just a few undocumented
tricks that aren't in the dictionary). So - since you can look up 'event'
and 'task' and notice that there's no 'modification date' property for
either don't be surprised you can't get one! you shouldn't expect to. You
can compile it, because 'modification date' and its raw code equivalent
<<property asmo>> are application keywords. As long as either appears in a
'tell application "Microsoft Entourage"' block, they'll compile. That's how
AppleScript is - it isn't smart enough to know whether you're using the
right property with the right class. It would be nice it if did, but it
doesn't, not in any app that I know of. You can write
tell application "Microsoft Entourage"
nickname of event id 23
get business fax phone number of task "No such task"
end tell
and it will compile, even though it's nonsense, and there may not even be an
event id 23. You don't get a syntax error, just an execution (runtime)
error. It's the same thing with your 'modification date' of event: it
doesn't exist (yet) in AppleScript, although it must in the Entourage
database, or Palm syncing couldn't happen. So it's reasonable to expect we
might get it some day. ;-) It _is_ possible for a property to apply to more
than one class (e.g. 'category', 'name') so that may be why it's not a
syntax error when the wrong property is applied to the wrong class.
Anyway, there's really no way at all to get modification date of event or
task in Entourage X or 2001.
--
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.