newbie question: changing due date on multiple tasks by grouping & sorting

F

forgethisname

I've just switched to Entourage X (sr1) from Outlook 2000 on Win2K.
I'd like to know if I can change the due date for multiple tasks in
one step.

For instance I have 5 tasks falling due on Friday and I'd like to
change the due date for all 5 to Monday in one go.

In Outlook 2000 I could create a custom view which grouped tasks by
due date, then drag a selection of tasks from the Friday date group
into the Monday date group - changing the due date to Monday for all
selected tasks.

Currently I find myself having to open each task individually set the
due date and close the task window.

There doesn't appear to be a grouping facility of any kind.

Likewise I don't seem to be able to sort by more than one criteria in
any view. Is there any way that I can sort my task list by category
then by due date they by priority for instance?

Any advice would be most appreciated.
 
P

Paul Berkowitz

I've just switched to Entourage X (sr1) from Outlook 2000 on Win2K.
I'd like to know if I can change the due date for multiple tasks in
one step.

For instance I have 5 tasks falling due on Friday and I'd like to
change the due date for all 5 to Monday in one go.

In Outlook 2000 I could create a custom view which grouped tasks by
due date, then drag a selection of tasks from the Friday date group
into the Monday date group - changing the due date to Monday for all
selected tasks.

Currently I find myself having to open each task individually set the
due date and close the task window.

There doesn't appear to be a grouping facility of any kind.

You can use a custom view to find them but you can't apply a single change
in one fell swoop like that. It sounds nifty.

You can run an AppleScript in Script Editor that will do it, after making
your selection in the Tasks List:

tell application "Microsoft Entourage"
activate
set selectedTasks to the selection
repeat with theTask in selectedTasks
if class of theTask is task then set due date of theTask to date
"19 Jan 2004"
end repeat
end tell

Edit as needed. Or alter it slightly so that you can use it on future
occasions, and save it (call it

Change Due Date \cmD

which will let you call it from a keyboard shortcut control-command-D, or
from the Script menu.

Save it as a Script to the Entourage Script Menu Items folder in the
~/Documents/Microsoft User Data folder.:

-----------------------------------------------

tell application "Microsoft Entourage"
activate
open main window -- brings it to front
try
set dispArea to displayed area of main window
if dispArea is not tasks area then error number -128
on error
beep 2
display dialog "You must first select some tasks in the Tasks List."
buttons {"OK"} default button 1 with icon 0
return
end try
try
set selectedTasks to the selection
on error
beep 2
display dialog "You must first select some tasks in the Tasks List."
buttons {"OK"} default button 1 with icon 0
return
end try

set done to false
repeat until done
display dialog "Enter a date in your own date format to be the due
date of all currently selected tasks in the Tasks List:" default answer ""
with icon 1

set dueDateString to (text returned of result)
if dueDateString = "" then
beep
display dialog "You must fill in a date in your own date
format." with icon 2
else
try
tell me to set dueDate to date dueDateString
set done to true
on error
beep
try -- works in Panther
set shortToday to "e.g. " & short date string of
(current date)
on error
set shortToday to ""
end try
display dialog "You must fill in a date in your own date
format." & return & return & shortToday with icon 2
end try
end if
end repeat

repeat with theTask in selectedTasks
set due date of theTask to dueDate
end repeat

display dialog "Done!" buttons {"OK"} default button 1 with icon 1
giving up after 3
end tell

----------------------------------------------------------

After yoiu have saved this to the correct folder, you can run it by
selecting its name in the Script menu (the S-squigly thing next to the Help)
or by pressing control-command-D (or read in the Help: AppleScript how to
set your own keyboard shortcut).

Likewise I don't seem to be able to sort by more than one criteria in
any view. Is there any way that I can sort my task list by category
then by due date they by priority for instance?


Nope. Outlook is much more advanced in that regard. If you download my free
"Print Tasks List" script from

MacScripter.net <http://macscripter.net/scriptbuilders/>

you can set the Tasks list to display in a Word Table (you don't actually
have to print it) with secondary and even tertiary sorting, as in Outlook.
There are various options for better display as well (such as having No Due
Date tasks at the bottom, not the top, etc.), various table formats, and so
on. Again, you can run it from teh Script menu whenever you want.



--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
F

forgethisname

Paul,

Thanks for your very prompt answer - I used your second script and it
works admirably. I just had to make one change from: -
if dueDateString "" then
beep

to

if dueDateString = "" then
beep

Thanks also for the clarification about sorting by multiple criteria.

I'm finding the switch from Outlook to Entourage quite frustrating but
the fact that Entourage can be scripted hence extended is a wonderful
thing.

Thanks again.
 
P

Paul Berkowitz

Thanks for your very prompt answer - I used your second script and it
works admirably. I just had to make one change from: -


to

if dueDateString = "" then
beep

That is in fact what I wrote. (Script editors would not compile it if I
hadn't.) I see you're corresponding from the Google website - there's
probably a faulty transcription of the Quoted-Printable encoding used by
HTML text I used (for the script), which thought that the "=" sign was
denoting a soft-wrapping in the message source and removed it. (Pretty
stupid as it would have been "=3D" in QP.)

If you're going to stick around a while, which I hope you do, you should
access the newsgroup in Entourage itself, or another newsreader. Your
messages will appear within 30 seconds rather than the much longer lag it
takes via a browser.
Thanks also for the clarification about sorting by multiple criteria.

I'm finding the switch from Outlook to Entourage quite frustrating but
the fact that Entourage can be scripted hence extended is a wonderful
thing.

Pretty amazing that a recent switcher like you is happy to undertake
AppleScript so willingly. That's why I hope you stick around.
Thanks again.

My pleasure.

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top