Title: Re: Completed dates for tasks...
On 2/7/04 10:52 am, "Kirk McElhearn" <[EMAIL PROTECTED]> wrote:
> On 7/2/04 11:43 AM, "Barry Wainwright" <[EMAIL PROTECTED]> wrote:
>
>> Working on the basis that the marking complete would have been the last
>> modification, you could put this script in the script menu:
>>
>> tell application "Microsoft Entourage"
>> set theTask to item 1 of (get selection)
>> if class of theTask is not task then
>> display dialog "No task selected!" buttons {"Abort"} default button 1
>> with icon stop
>> return
>> end if
>> set theDate to (modification date of theTask) as text
>> display dialog "This task was last modified on " & theDate with icon note
>> buttons {"OK"} default button 1
>> end tell
>>
>> Save the script as a compiled script & put it in the ‘Entourage Script Menu
>> Items’ folder in your ‘Microsoft User Data’ folder.
>
> Good idea!
>
> However, if I read a completed task, or especially if I add comments to it,
> then it won't work... So in that case, I'd have to enter a date in the
> comments field.
>
Reading a task shouldn't change the completion date (and it doesn't appear to). Adding anything new will, and that is a problem.
You could use this script to mark a task complete and add the date comment automatically, but would need to remember to use the script, not the checkbox in the task.
tell application "Microsoft Entourage"
set theTask to item 1 of (get selection)
if class of theTask is not task then
display dialog "No task selected!" buttons {"Abort"} default button 1 with icon stop
return
end if
tell thetask
set content to content & return & return & "Task Completed: " & (get current date)
set completed to true
end tell
end tell
--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
<http://www.entourage.mvps.org/>
- Completed dates for tasks... Kirk McElhearn
- Re: Completed dates for tasks... Barry Wainwright
- Re: Completed dates for tasks... Kirk McElhearn
- Re: Completed dates for tasks... Barry Wainwright
- Re: Completed dates for tasks... Paul Berkowitz
- Re: Completed dates for tasks... Allen Watson
