Title: Re: Applescript for automating email to task
On 15/2/06 20:41, "Richard Shane, Ph.D." <[EMAIL PROTECTED]> wrote:

Hello

(Using OS 10.4.4, Ent. 2004, v. 11.2)

There’s an Ent Apple Script I would find extremely useful. If it already exists, please let me know. If not, I’ll hire Allen Watson to create it, then I will let everyone know it’s available.

The need: Often when I send emails, I link the email to new task to set up a reminder that will appear in a few days (or whatever time period), so if the person did not respond by then, I’m reminded to contact them again. If they already had responded, I delete the task. To create this entails:

Go up to links
Drag down to Link to New
Drag over to Task
Type in new task title
Set date

More steps than I would like.

Wondering if there is an Applescript that could streamline this. I’m thinking perhaps you select the script and it:

Automatically creates new task window

Automatically puts in the title of the email (whereas in scenario above, I need to manually type it in)

(and it would be really cool if it could automatically add this step...) Add the name of the email recipient and write that next to the title of the email so all that info would be in Task title.

Any ideas? Thank you.

Richard

tell application "Microsoft Entourage"
    if not (class of window 1 = draft window) then return
   set theMessage to displayed message of window 1
    set toRecips to to recipients of window 1
    set {oldTIDs, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ", "}
    set theName to " - " & toRecips as text
   set AppleScript's text item delimiters to oldTIDs
   set theTask to make new task with properties {name:subject of theMessage & theName}
    open theTask
   link theMessage to theTask
end tell


--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Check out the Entourage User's WebLog for hints, tips and troubleshooting
<http://homepage.mac.com/barryw/weblog/weblog.html>

Reply via email to