Is there a simple way to do this?

I want to use the contents of the clipboard to specify the name of the
task.
I've already figured out how to make an applescript that copies the
text from a specified cell in Excel.

I would also like to map the category of the newly created task to the
filename of the Excel file. In other words, from a list of predefined
Entourage categories, I would like the new task to pick one based on
which Excel file the copied text originates from.

The icing on the cake would be to be able to assign priorities and
other attributes to the task based on other information in the Excel
file.

Anyone have any clues?

Thanks!

Re: applescript to create new task by Dave

Dave
Sat Apr 17 11:14:55 CDT 2004

On 4/17/04 8:56 AM, in article
f51d0f56.0404170756.565fba0d@posting.google.com, "stefan"
<stefan.armstrong@mac.com> wrote:

> Is there a simple way to do this?
>
> I want to use the contents of the clipboard to specify the name of the
> task.
> I've already figured out how to make an applescript that copies the
> text from a specified cell in Excel.
>
> I would also like to map the category of the newly created task to the
> filename of the Excel file. In other words, from a list of predefined
> Entourage categories, I would like the new task to pick one based on
> which Excel file the copied text originates from.
>
> The icing on the cake would be to be able to assign priorities and
> other attributes to the task based on other information in the Excel
> file.
>
> Anyone have any clues?

Entourage ships with a script called "Create task from message". That's a
great place to start.


Re: applescript to create new task by Barry

Barry
Thu Apr 22 10:51:33 CDT 2004

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3165497495_3953631
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: 8bit

On 17/4/04 4:56 pm, in article
f51d0f56.0404170756.565fba0d@posting.google.com, "stefan"
<stefan.armstrong@mac.com> wrote:

> Is there a simple way to do this?
>
> I want to use the contents of the clipboard to specify the name of the
> task.
> I've already figured out how to make an applescript that copies the
> text from a specified cell in Excel.
>
> I would also like to map the category of the newly created task to the
> filename of the Excel file. In other words, from a list of predefined
> Entourage categories, I would like the new task to pick one based on
> which Excel file the copied text originates from.
>
> The icing on the cake would be to be able to assign priorities and
> other attributes to the task based on other information in the Excel
> file.
>
> Anyone have any clues?
>
> Thanks!

set theName to the clipboard ? transfer text from clipboard to a local
variable
set theContent to "Here is some text"
set theDueDate to (get current date)+1 -- tomorrow
set theReminder to (get current date)+0.958333 -- tomorrow (-1 hr)
set thePriority to normal -- could be lowest/low/normal/high/highest
set theCategory to {category "Work"} -- category(ies) must be pre-defined -
make sure it's a list!

make new task with properties {name: theName, completed: false, content:
theContent, due date: theDueDate, remind date and time: theReminder,
priority: thePriority, category: theCategory}

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the Entourage FAQ pages? - Check them out:
<http://www.entourage.mvps.org/toc.html>

Please post responses to this newsgroup. If I ask you to contact me
off-list, remove '.INVALID' from email address before replying.


--B_3165497495_3953631
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: applescript to create new task</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:10.0px'>On 17=
/4/04 4:56 pm, in article f51d0f56.0404170756.565fba0d@posting.google.com, &=
quot;stefan&quot; &lt;stefan.armstrong@mac.com&gt; wrote:<BR>
<BR>
<FONT COLOR=3D"#0000FF">&gt; Is there a simple way to do this? <BR>
&gt; <BR>
&gt; I want to use the contents of the clipboard to specify the name of the=
<BR>
&gt; task.<BR>
&gt; I've already figured out how to make an applescript that copies the<BR=
>
&gt; text from a specified cell in Excel.<BR>
&gt; <BR>
&gt; I would also like to map the category of the newly created task to the=
<BR>
&gt; filename of the Excel file. In other words, from a list of predefined<=
BR>
&gt; Entourage categories, I would like the new task to pick one based on<B=
R>
&gt; which Excel file the copied text originates from.<BR>
&gt; <BR>
&gt; The icing on the cake would be to be able to assign priorities and<BR>
&gt; other attributes to the task based on other information in the Excel<B=
R>
&gt; file.<BR>
&gt; <BR>
&gt; Anyone have any clues?<BR>
&gt; <BR>
&gt; Thanks!<BR>
</FONT><BR>
set theName to the clipboard &#8212; transfer text from clipboard to a loca=
l variable<BR>
set theContent to &quot;Here is some text&quot;<BR>
set theDueDate to (get current date)+1 -- tomorrow<BR>
set theReminder to (get current date)+0.958333 -- tomorrow (-1 hr)<BR>
set thePriority to normal -- could be lowest/low/normal/high/highest<BR>
set theCategory to {category &quot;Work&quot;} -- category(ies) must be pre=
-defined - make sure it's a list!<BR>
<BR>
make new task with properties {name: theName, completed: false, content: th=
eContent, due date: theDueDate, remind date and time: theReminder, priority:=
thePriority, category: theCategory}<BR>
<BR>
-- <BR>
Barry Wainwright<BR>
Microsoft MVP (see <a href=3D"http://mvp.support.microsoft.com">http://mvp.su=
pport.microsoft.com</a> for details)<BR>
Seen the Entourage FAQ pages? - Check them out:<BR>
&nbsp;&nbsp;<a href=3D"http://www.entourage.mvps.org/toc.html">&lt;http://www=
.entourage.mvps.org/toc.html&gt;</a><BR>
<BR>
Please post responses to this newsgroup. If I ask you to contact me off-lis=
t, remove '.INVALID' from email address before replying.<BR>
</SPAN></FONT>
</BODY>
</HTML>


--B_3165497495_3953631--