Has anyone been able to figure out how to hide incoming messages in the
RMW as they are being received via a script invoked in a filter? I have
an AppleScript that I can run from the script menu *after* they have been
received which works fine. But this same script when invoked via a filter
seems to do nothing on messages being received. Here's the script:
tell application "PowerMail"
set msgs to current messages
repeat with m in msgs
try
set origLoc to m's storage
move m to message container "Mail Trash"
get result -- delay for a nanosec
move m to origLoc
end try
end repeat
end tell
I'm sure someone will suggest the approach of writing the filter such
that there's a move to trash followed by a move to the correct folder. I
dislike that approach for the simple reason that if I later decide to
cease hiding it from appearing in the RMW, I have to delete both filters
before re-adding the move to correct folder step. Much more
straightforward IMHO to have the filters as move to correct folder
followed by execute AppleScript to hide in RMW. With this approach if I
decide to cease hiding it in RMW, I just delete the AppleScript step.
The best solution IMO would be to have a filter level option such as the
current filter incoming/outgoing, to show/hide in RMW. How about it Jerome?
//brian
PM 4.2
iBook 600Mhz dual-USB, 10.2.6