• 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
Mail crashing on mail action when getting content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail crashing on mail action when getting content


  • Subject: Mail crashing on mail action when getting content
  • From: Alan Fairlie <email@hidden>
  • Date: Mon, 23 Jun 2008 18:00:01 +1000

The following script causes Mail to crash when a mail rule calls the script.
It works fine if l remove - set theContent to content of item 1 of theMessages.

Is this a bug or is there another way to get the content of an email via a mail rule?

Thanks, Alan.

using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"


set theSubject to subject of item 1 of theMessages
set theContent to content of item 1 of theMessages


set theText to "Subject: " & theSubject & return & "Content: " & theContent
display dialog theText


end tell
end perform mail action with messages
end using terms from


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mail crashing on mail action when getting content
      • From: deivy petrescu <email@hidden>
    • Re: Mail crashing on mail action when getting content
      • From: Detlef Schulz <email@hidden>
  • Prev by Date: Re: FileMaker "do script"
  • Next by Date: Re: Folder Actions and File being written
  • Previous by thread: Re: Folder Actions and File being written
  • Next by thread: Re: Mail crashing on mail action when getting content
  • Index(es):
    • Date
    • Thread