Script to create Note from Task for Office 2004?

  • Thread starter Norman R. Nager, Ph.D.
  • Start date
N

Norman R. Nager, Ph.D.

I know that there is a script to create Notes from Messages. Is there also
a script to create Notes from Office 2004 Tasks?

Respectfully, Norm
 
P

Paul Berkowitz

I know that there is a script to create Notes from Messages. Is there also
a script to create Notes from Office 2004 Tasks?

What sort of note (what information) would you want from a task?

What's wrong with just keeping the task around?
Respectfully, Norm

etc.

--
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.
 
N

Norman R. Nager, Ph.D.

What sort of note (what information) would you want from a task?

Descriptive information on how a procedure is executed. Sometimes, I wish
to incorporate identical info in both a Task with a time certain for
completion and a Note for file retrieval purposes. Without a script, I copy
from the Task the lines of information that MAY be useful later, create a
new Note and paste the from the clipboard to the body of the Note and then
to to the subject line of the Note.
What's wrong with just keeping the task around?
1. Notes filed as Tasks would end up at the bottom of the chronological
list of Tasks. On rare occasion, I forget to set a date for a Task. For
that reason, from time to time, I scroll to the bottom of the list to assure
that there are no such Tasks without dates. It would not be convenient to
read through the list of un-dated items.

2. I prefer to search one part of the database at a time. There is a
certain logic to searching within Notes for something that is not time
certain.

Respectfully, Norm
 
N

Norman R. Nager, Ph.D.

What are chances of a script to create Notes from Office 2004 Tasks? Norm
 
P

Paul Berkowitz

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.
 
N

Norman R. Nager, Ph.D.

Thank you very much, Paul! That was very kind of you. I wish that I did
not have a block in learning script writing. I greatly respect you for
what you¹ve contributed with the many valuable scripts you have created and
share in such venues as <http://scriptbuilders.net/>, where a search of your
name turns up 192 scripts.

Respectfully, Norm
 
Top