how to remove date from task via applescript?

J

Jonathan Swartz

How do I remove the due date or start date from a task via
applescript?

I've tried
set start date of theTask to none
set start date of theTask to ""
set start date of theTask to date ""
set start date of theTask to "No start date"

but no dice.

This is Entourage 2008 btw, but hopefully a solution for 2004 would
work as well.

Thanks!
Jon
 
W

William Smith [MVP]

Jonathan said:
How do I remove the due date or start date from a task via
applescript?

I've tried
set start date of theTask to none
set start date of theTask to ""
set start date of theTask to date ""
set start date of theTask to "No start date"

Doesn't look like this is possible. You should be able to set "has due
date" to false, but this doesn't work. Possibly, this is a read-only
property but is not correctly identified that way in the Entourage
AppleScript dictionary.

You might try reading in all the properties of the task, creating a new
task with those properties (except for start date and due date) and then
delete the old task. This is a kludgey workaround but seems to be the
only option I see.

Hope this helps!

--

bill

Entourage Help Page <http://entourage.mvps.org/>
Entourage Help Blog <http://blog.entourage.mvps.org/>
YouTalk <http://nine.pairlist.net/mailman/listinfo/youtalk>
Twitter: follow <http://twitter.com/meck>
 
Top