You're not using text items, so why are you setting text item delimiters in the first place? You're using "words", and firstname will be a list of words, not text. Since various types of punctuation and certain other characters are considered by AppleScript to be word separators, using "words" could lead you into trouble, even if you coerced firstname to text. You might well end up with a contact whose name does not correspond with the sender's. (E.g. "George C. Spammer, Inc." will end up as "George C Spammer Inc" . At the moment, you ought to be getting an error when you try to set first name to a list, but perhaps Entourage coerces it to text for you) Frankly, you would be better off using "text items", NOT "words". Probably you've seen no problem since Entourage actually just cares about the email address, not the display name, for Junk filtering: the name is not relevant (And I'm not sure that you really need to both set its category to Junk AND delete the contact – either one should work.) Still, you might as well get it right:
Thanks Paul!
-Remo Del Bello
--
"Eww, Daddy, this tastes like Gramma!"
- Ralph Wiggum on the Simpsons
