Mail crashing on mail action when getting content
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