What are chances of a script to create Notes from Office 2004 Tasks? Norm
Chances would be 100% if you did it yourself. I'm still curious as to why
you'd prefer to make more stuff instead of just using the task you already
have. You say it's too tedious to scroll to the bottom of your
chronologically-sorted (by Due Date, oldest at top, it seems) Tasks List to
look around in No-Due-Date tasks at the bottom, but would prefer to click to
switch to the Notes list and search there - presumably alphabetically by
Title (A at top)? I'm still wondering why you don't simply click the Task
(i.e. Name) column header, which would immediately sort tasks
alphabetically, A at top, or else click the Due Date column which would put
the No-Due-Date tasks at the top - in no apparent order, admittedly.
Actually the order of the No-Due-Date tasks is by Date Creation - when
reversed to put them at the top it will be newest-created-at-top.
Since you do not seem to be interested in experimenting or adapting in these
ways, and would apparently like someone else to write you a script to
duplicate your data, here it is:
tell application "Microsoft Entourage"
try
set selectedTasks to selection
if class of selectedTasks is not list then error number -128
if class of item 1 of selectedTasks is not task then error number
-128
on error
if displayed area of main window is not tasks area then
set displayed area of main window to tasks area
select main window
end if
beep
display dialog "First select one or more tasks in the Tasks List or
a Tasks View." buttons {"OK"} default button 1 with icon 0
return
end try
repeat with theTask in selectedTasks
if class of theTask is task then -- otherwise (in mixed view) skip
this one
set {theTitle, theContent, theCategories, theProjects} to
theTask's {name, content, category, project list}
set newNote to make new note with properties {name:theTitle,
content:theContent, category:theCategories, project list:theProjects}
link newNote to theTask
end if
end repeat
--if (count selectedTasks) = 1 then open newNote
end tell
If you want the note to open in the case that you've only selected one task,
remove the "--" at the beginning of the penultimate line.
You cannot run this with a task window open in the front - there's no way to
"get at" the task from the window: run it when you have selected one or more
tasks in the Task List or a Task View (or any custom view) in the front.
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <
http://www.entourage.mvps.org/faq/index.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 Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.