• 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: Michelle Steiner <email@hidden>
  • Date: Mon, 8 Sep 2003 11:03:45 -0700

On Monday, September 8, 2003, at 03:54 AM, Neil Faiman wrote:

I must be missing something. Is there some reason that this does not meet your needs, as far as getting the headers is concerned?

-Neil Faiman

tell application "Mail"
set theSelection to the selection
set theMessage to some item of theSelection
get the headers of theMessage
end tell

For one thing, it gives me an error on the last word of "set theSelection to the selection"
--> "Mail got an error: NSCannotCreateScriptCommandError"

For another, I don't want to get the headers; I want to forward the entire message, including the headers.

--
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.

  • Prev by Date: mail.app: where 's the "sent" mailbox of a mac account?
  • Next by Date: Re: Dream maintenance script
  • Previous by thread: Re: Mail.app automation
  • Next by thread: run script not setting script property
  • Index(es):
    • Date
    • Thread