Looping through a mailbox?
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.