Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple mail script not working



On Aug 30, 2007, at 10:47 AM, Ken Tozier wrote:

Here's the script could someone point out what I'm doing wrong?

using terms from application "Mail"
on perform mail action with messages selectedMessages
-- activate -- tried this both commented and uncommented, no difference
repeat with aMessage in selectedMessages
display dialog aMessage
end repeat
end perform mail action with messages
end using terms from

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


The crash was probably caused by your script.

-- Michelle

--
We are like tenant farmers chopping down the fence around our house for fuel when we should be using nature's inexhaustible sources of energy - sun, wind and tide. I'd put my money on the sun and solar energy. What a source of power! I hope we don't have to wait until oil and coal run out before we tackle that.
-- Thomas Alva Edison (1847-1931)


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

This email sent to email@hidden
References: 
 >Simple mail script not working (From: Ken Tozier <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.