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" <stefan.armstrong@mac.com> wrote:<BR>
<BR>
<FONT COLOR=3D"#0000FF">> Is there a simple way to do this? <BR>
> <BR>
> I want to use the contents of the clipboard to specify the name of the=
<BR>
> task.<BR>
> I've already figured out how to make an applescript that copies the<BR=
>
> text from a specified cell in Excel.<BR>
> <BR>
> I would also like to map the category of the newly created task to the=
<BR>
> filename of the Excel file. In other words, from a list of predefined<=
BR>
> Entourage categories, I would like the new task to pick one based on<B=
R>
> which Excel file the copied text originates from.<BR>
> <BR>
> The icing on the cake would be to be able to assign priorities and<BR>
> other attributes to the task based on other information in the Excel<B=
R>
> file.<BR>
> <BR>
> Anyone have any clues?<BR>
> <BR>
> Thanks!<BR>
</FONT><BR>
set theName to the clipboard — transfer text from clipboard to a loca=
l variable<BR>
set theContent to "Here is some text"<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 "Work"} -- 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>
<a href=3D"
http://www.entourage.mvps.org/toc.html"><http://www=
.entourage.mvps.org/toc.html></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--