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: help scripting apple mail



Hi Bob,

That's a really good question.  I can get lots of material including the id of each message, the address of the sender the count of messages and much more, but I can't work out how to get the message content.

The script below may help you get started.  It gets unread messages, but brings them up in the message viewer of mail.

tell application "Mail" to try
tell message viewer 1 to set selected messages to {first message of beginning of (get selected mailboxes) whose read status is false}
activate
on error
beep
end try

Good luck.


On 23/06/2007, at 5:06 AM, Bob Cuilla wrote:

I have three .Mac accounts, Grapes,Oranges and Lemons.  I would like to AS the following.

1. Select account "Lemons"

2. Build a list that contains the message bodies in that list

For example, if lemons had four emails, whose messages were Green grass, blue skies, yellow daisy and pink panther, respectively, I would like the list to contain

green grass
blue skies
yellow daisy
pink panther

Can anyone give me a kick-start on this?

Thanks

Bob Cuilla
Orlando, Fl


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

Peter Baxter

Music creates order out of chaos: for rhythm imposes unanimity upon the divergent, melody imposes continuity upon the disjointed, and harmony imposes compatibility upon the incongruous.
-- Yehudi Menuhin



 _______________________________________________
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: 
 >help scripting apple mail (From: Bob Cuilla <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.