• 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: Account Mail Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Account Mail Question
      • From: Michelle Steiner <email@hidden>
References: 
 >Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Luther Fuller <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Luther Fuller <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Luther Fuller <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Michelle Steiner <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Michelle Steiner <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Michelle Steiner <email@hidden>)
 >Re: Account Mail Question (From: m <email@hidden>)
 >Re: Account Mail Question (From: Michelle Steiner <email@hidden>)
 >Re: Account Mail Question (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Account Mail Question
  • Next by Date: Re: Frontmost Message Viewer
  • Previous by thread: Re: Account Mail Question
  • Next by thread: Re: Account Mail Question
  • Index(es):
    • Date
    • Thread