Re: Vacation Mail script
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.