Re: Mail.app automation
Re: Mail.app automation
- Subject: Re: Mail.app automation
- From: John Delacour <email@hidden>
- Date: Sun, 7 Sep 2003 17:04:11 +0100
- Mac-eudora-version: 6.1a2
At 6:17 pm -0700 6/9/03, Michelle Steiner wrote:
Is there a way that I can show headers, forward the message, enter
an addressee, send the forward, and delete the original all in one
step, using mail.app?
I think the show headers matter has been dealt with recently, and I
don't know why you want to do it in this case. As to the rest, this
works here with or without the commented ----- bits. For the last
line you may need to use your 'set mailbox of _message' trick :
tell app "Mail"
----- set fl to true
set _original to item 1 of (get selection)
set _forwarded to forward _original ----- opening window fl
tell _forwarded
set _to to {name:"jd", address:"email@hidden"}
make to recipient at end with properties _to
save -- or send
end
----- if fl then close window 1
move _original to mailbox "Deleted Messages"
end
JD
.
_______________________________________________
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.