• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dave Lyons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dave Lyons


  • Subject: Re: Dave Lyons
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 23 Sep 2005 22:18:50 -0700


On Sep 23, 2005, at 9:14 PM, Dave Lyons wrote:

I'll be out of the office for a few days, until Thursday the 29th. (However, I won't be setting my email to auto-vacation-reply to every mailing list topic.)

Well, you can use my vacation mail script.

Set up a rule to check whether the sender is in the address book, but not in the vacation group; if it is true, then have the rule send your vacation message and run the script:

using terms from application "Mail"
    on perform mail action with messages theMessages ¬
        for rule theRule
        tell application "Mail"
            repeat with thisMessage in theMessages
                set sender_ to sender of thisMessage
                set name_ to extract name from sender_
                set address_ to extract address from sender_
                set fn to first word of name_
                set ln to last word of name_
                tell application "Address Book"
                    set new_contact to make new person
                    tell new_contact
                        set first name to fn
                        set last name to ln
                        make new email at beginning of emails ¬
                            with properties ¬
                            {label:"vacation", value:address_}
                    end tell
                    add new_contact to group "vacation"
                    save addressbook
                end tell
            end repeat
        end tell
    end perform mail action with messages
end using terms from

Of course, if you could get the mail development team to add an option to add the sender to a specific group, the script would not be necessary. We had that as one of the mail actions in Claris Emailer almost a decade ago.

-- Michelle

--
History always complicates things.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Dave Lyons
      • From: Michelle Steiner <email@hidden>
References: 
 >Dave Lyons (From: Simon Forster <email@hidden>)
 >Re: Dave Lyons (From: Dave Lyons <email@hidden>)

  • Prev by Date: Re: Dave Lyons
  • Next by Date: Re: Dave Lyons
  • Previous by thread: Re: FileMaker Pro 8 and Do Scripts Errors!
  • Next by thread: Re: Dave Lyons
  • Index(es):
    • Date
    • Thread