• 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: Mail.app automation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Mail.app automation
      • From: Michelle Steiner <email@hidden>
References: 
 >Mail.app automation (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Eudora mail folders and "" root (JD?)
  • Next by Date: Re: Mail.app automation
  • Previous by thread: Mail.app automation
  • Next by thread: Re: Mail.app automation
  • Index(es):
    • Date
    • Thread