• 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
Re: help scripting apple mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help scripting apple mail


  • Subject: Re: help scripting apple mail
  • From: John M <email@hidden>
  • Date: Wed, 27 Jun 2007 22:37:25 +0100


Hi Bob,

What about using 'content' :

set myText to ""
tell application "Mail"
set myMessages to messages of mailbox "INBOX" of account "Lemons" of application "Mail"
repeat with myMessage in myMessages
set myText to myText & content of myMessage & return
end repeat
end tell
return myText



Best wishes

John Maisey
www.nhoj.co.uk



On 23 Jun 2007, at 12:33, email@hidden wrote:

From: Bob Cuilla <email@hidden>
Subject: help scripting apple mail

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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: help scripting apple mail
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Scripting Interface Design
  • Next by Date: Vista & removable HDD can not access
  • Previous by thread: Re: help scripting apple mail
  • Next by thread: Re: help scripting apple mail
  • Index(es):
    • Date
    • Thread