I tried a few tests with your modified script and it still crashes mail.
I think it's a bug in Mail as the script isn't doing anything complex
and the crash happens so fast. The instant mail gets the message,
bam! it crashes.
On Aug 30, 2007, at 2:49 PM, Michelle Steiner wrote:
using terms from application "Mail"
on perform mail action with messages selectedMessages
tell application "Mail"
-- activate -- tried this both commented and uncommented, no
difference
repeat with aMessage in selectedMessages
set messageContent to content of aMessage
display dialog messageContent
end repeat
end tell
end perform mail action with messages
end using terms from