Cool!!! Now what if I would like to add the date and hour of the reminder to
the message. What would be the correct formula on this?

set theContent to "Remind me:" & ?????? of theTask

Thanks! -- Kai

PS I had to erase "end if" after "D/L: " & due date of theTask". Don't know
why but it didn't work.


on 17.11.2000 9:59 Uhr, Peter Ulbrich at [EMAIL PROTECTED] wrote:

> on 16/11/00 23:23, Kai Vermehr at [EMAIL PROTECTED] wrote:
> 
>> Now the question raised if it would be possible to mail the new "real"
>> To-Do's in Entourage. Wouldn't it be also great to mail meetings to other
>> Entourage users adding them automatically to their calendar?
>> 
>> Might this be solved by scripting maybe?
> 
> For the ToDo you can try the scrip at the end of this message (beware
> line-breaks). This puts the ToDo as an e-mail into the drafts folder and
> leaves the message open for addressing and sending.
> 
> You can also modify the standard "Create Task from Message" script to find
> the due date information in the e-mail and create a task on the recipient
> end exactly in the same format as it was on the originator side (automated
> via a rule).
> 
> Peter 
> 
> 
> 
> tell application "Microsoft Entourage"
>   
>   -- get the currently selected task or tasks
>   
>   try
>       set theSelection to the selection
>   on error
>       set theSelection to {}
>   end try
>   
>   set selectedTasks to {}
>   
>   get theSelection
>   
>   repeat with theObject in theSelection
>       
>       if class of theObject is task then
>           set selectedTasks to selectedTasks & {theObject}
>       end if
>       
>   end repeat
>   
>   if selectedTasks is {} then
>       display dialog "Please select a task first and then run this
> script." with icon 1
>       return
>   end if
>   
>   repeat with theTask in selectedTasks
>       -- get the information from the message, and store it in variables
>       set theSubject to "FYA: " & name of theTask
>       set theCategory to category of theTask
>       set thePriority to priority of theTask
>       set theContent to "For your action, please:" & return & return &
> content of theTask
>       if due date of theTask is not date "Friday, January 1, 1904 0:00:00"
> then
>           set theContent to theContent & return & return & "D/L: " & due
> date of theTask
>       end if
>       
> --        set theContent to theContent & return & return & "Thanks, Peter"
>       
>       set newMessage to make new outgoing message with properties
> {subject:theSubject, content:theContent, category:theCategory,
> priority:thePriority}
>       
>       link theTask to newMessage
>       
>       open newMessage
>       
>   end repeat
>   
> end tell
> 

-- 
eBoy Graphics
Kai Vermehr
http://www.eboy.com


-- 
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives: 
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to