On 29/9/2005 12:30 AM, "Barry Wainwright" <[EMAIL PROTECTED]> spake thus:

> tell app "microsoft entourage" to delete (every task whose completed is
> true)

A slightly more sophisticated version that only deletes completed tasks that
were due more than 60 days ago:

tell application "Microsoft Entourage" to delete (every task where (due date
< ((current date) - 5184000)) and completed is true)

Works a treat. (If anyone knows a more intelligible way of writing the date
expression, please let me know, working out the number of seconds in 60 days
isn't difficult, but it's a nuisance :)

-- 
Nigel Stanger,               <http://www.business.otago.ac.nz/infosci/>
Dept. of Information Science,    <http://public.xdi.org/=nigel.stanger>
University of Otago, Dunedin, NEW ZEALAND.               +64-3-479-8179

"Some stuff that should make sense makes less sense than that stuff that
makes no sense at all." --- anon.

-- 
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/>

Reply via email to