Title: Re: Simple script question
On 8/10/02 7:28 PM, "Dan Frakes" <[EMAIL PROTECTED]> wrote:

Thanks, Paul; it is a bit confusing to those of us not well-versed in the wonders of AppleScript. Except that for some reason

    set category of theMsg to {category "Junk"}

isn't actually setting the category. The script compiles fine, and the other parts of the script (set status to read, move to SPAM folder) work fine. In fact, here's the entire thing:

Are you quite sure of that? What scripts can't do is set Junk STATUS - only the Junk Mail Filter can do that, plus Rules. that's never been made scriptable. Junk Status has that ghostly icon with the down arrow The script can't do that. and there's no real reason for it to be scriptable - the only point to Junk Status is to give rules a handle to act on messages defined by the JMF. I guess it's nice to have that visual feedback, but it's no big deal. your script is already acting on messages you want treated as Junk, so what difference does it make if they also have Junk Status? Maybe you need to make the color for Junk category more distinctive. Just for a moment, set the color of Junk to some wild vermilion or purple color. Now try the script. You're sure it's not setting the category to "Junk" category?

--
Paul Berkowitz

Reply via email to