Hi Justin; Since the script works when you run the filter manually then I'd say that the problem is most likely not in the script but in your filter list. Probably there is some filter higher up the food chain that is stopping the message from reaching the script filter. Remember, filters (when run automatically) run from the top of the list to the bottom, in sequence. So, if a given message meets the criteria of a filter higher up the list, and if that filter has the "Don't apply subsequent filters to this message" box *checked*, then the message will never reach the filter with the script, so the script won't run.
Try moving your script filter to the top of the list and see if a normal 'automatic' run works then. If it does then the order of your filters is probably the issue. HTH Rick -- G5 2GHz x2 :: 2GB RAM :: 10.4.3 :: PM 5.2.3 :: 3 pane mode Shark Attack: A Design Studio <www.sharkattack.co.uk> -- Original message: Received from Justin Beek on 15/3/06 at 22:42 >OK. I have modified the script that Christian Roth posted and have run >into a weird problem. > >If I run it thru Script Editor - it works >If I set it as an incoming filter - it doesn't work. (the folder name >is "-1") >If I *manually* run it via the "Mail / Perform Filter" - it works. > >Any idea what I did wrong here? >(See script below) > >Thanks, >Justin / script snipped off for brevity /