Re: Account Mail Question
Re: Account Mail Question
- Subject: Re: Account Mail Question
- From: m <email@hidden>
- Date: Sat, 29 Dec 2007 18:31:14 -0800
Just curious,
Why not use
"Set theMSG to (message id of every message whose message id does not
contain "")
And then, instead of loop through each one, is it not possible to
select the all...which is what I think you are trying to do...then
simple do something like;
delete selection ( instead of i)
I will let you know what works as soon as we return from "Beethoven's
9th" :-)
On Dec 29, 2007, at 6:23 PM, Peter Baxter wrote:
tell application "Mail"
tell message viewer 1
set theMSG to (message id of every message whose message id does
not contain "@")
end tell
try
repeat with i from 1 to the number of items in theMSG
delete i
end repeat
on error
display dialog "There was no spam today without an id"
end try
--Use a repeat routine to move theMSG to mailbox "INBOX_Duplicates"
end tell
_______________________________________________
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