The “where its” clause works in OS X; I don’t think it will work in OS 9. I tested this using “open” instead of “delete”, and with an extra line that let me cancel after two folders...and it worked. I have not tested with the delete, but I believe it will work.
Yes, it will work in Entourage 2001/OS 9, if you put the line:
set twoDaysAgo to (current date) - (2 * days)
ABOVE the 'tell application "Microsoft Entourage"' line, or else change it to:
tell me to set twoDaysAgo to (current date) - (2 * days)
What won't work in Entourage 2001 would be where there was an "equal" or "less/greater than or equal to" comparsion:
delete (every message in f where its time sent � twoDaysAgo)
That wouldn't work. (The other 'where its' or 'whose' clauses that don't work in E2001 are for 'category' poperties only.)
delete (every anything whose something is whatever)
works. What doesn't work is
set aList to (every anything whose something is whatever)
delete aList
You have to express it as an 'every object' (with or without whose or 'where its' clauses) - even though that does evaluate to a list - rather than first evaluating it to a list. Can't delete a list as such. Just one of those things...
--
Paul Berkowitz
