• 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
Looping through a mailbox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looping through a mailbox?


  • Subject: Looping through a mailbox?
  • From: Andersen Studley <email@hidden>
  • Date: Wed, 7 Jul 2004 23:55:05 -0700

Hello List,

Hoping to lean on your help yet again... I've made tons of progress
with your infinite wisdom and guidance.

Simply put, I would like to loop through a mailbox and perform actions
on each message.

Previously, I've been using the following for a single message :
on perform mail action with messages theMessages
repeat with ThisMessage in theMessages

so, I tried

set theBox to mailbox "comments"
repeat with ThisMessage in theBox
tell application "Mail"
set TheContent to content of ThisMessage
set TheSender to sender of ThisMessage
set TheSubject to subject of ThisMessage

which brings forth errors. (seemingly at the first "content" keyword,
at least it ends up highlighted)

A simple fix, I'm sure, I just don't have my head around applescript
quite yet.

Many Thanks for any help you can give


Andersen Studley
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Looping through a mailbox?
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Characters in a file name - some progress
  • Next by Date: Re: Looping through a mailbox?
  • Previous by thread: Re: update folder using do shell script?
  • Next by thread: Re: Looping through a mailbox?
  • Index(es):
    • Date
    • Thread