• 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: Vacation Mail script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vacation Mail script


  • Subject: Re: Vacation Mail script
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 26 Mar 2004 00:17:01 -0700

On Mar 25, 2004, at 11:52 PM, Michelle Steiner wrote:

Hey, that's great; I didn't know it existed. I wrote the script for Jaguar, and tested it under Panther, but never noticed that name and email address can be extracted from the full address.

So, here is the Panther version of the script

tell application "Mail"
perform mail action with messages messages_to_process for rule "vacation"
repeat with message_to_process in messages_to_process
set the_sender to the sender of the message_to_process
my add_to_list(extract address from the_sender)
end repeat
end tell

to add_to_list(email_sender)
tell application "Address Book"
set the newbie to make new person at after the people of group "Vacation"
make new email at after the emails of the newbie with properties {label:"Vacation", value:email_sender}
save addressbook
end tell
end add_to_list

--
Impeach The Son Of A Bush!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Vacation Mail script (From: Andreas Amann <email@hidden>)
 >Re: Vacation Mail script (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: AppleScript & HTML Again...
  • Next by Date: Re: AppleScript & HTML Again...
  • Previous by thread: Re: Vacation Mail script
  • Next by thread: Re: Vacation Mail script
  • Index(es):
    • Date
    • Thread