Tom Dillon wrote:

>How do I delete a single message via AppleScript? I've looked at the
>script from Wayne Brissette's site for deleting a list of messages
>thinking it would be easy to figure out how to delete one from within a
>filter, but my brain just can't figure out how to assign a single message
>for deletion.

The same AppleScript property "current messages" is used for the selected
messages (when the script is called manually) and for the filtered
message (when the script is called from a filter). In this case, it is a
list containing a single message.

>Is there a way in an AppleScript to keep PowerMail from proceeding to the
>next filter?

No. Workaround: you can set the subject of your message to "###delete###"
in your script, then create a second filter that will delete the message
immediately if the subject is "###delete###", and check the "stop
applying filters" in the second filter.

Jérôme - PowerMail Engineering

---------------------------------------------------------------------
   "Fan-freakin-tastic email client. PowerMail is by far the best
    application I've purchased."
  PowerMail user comment on www.versiontracker.com

         Download a demo version from www.ctmdev.com
---------------------------------------------------------------------


Reply via email to