On Wednesday, 30 July 2003, at 3:34 PM, Andy Fragen <[EMAIL PROTECTED]> composed the following:
>I'm having a problem. I'm trying to write a script that will act on a >message if the message is in the "Spam" folder. "Spam" folder is at the >main level. The problem is how can I test for this? I've got the >following in a script and I get an error. > >===== >tell application "PowerMail" > set theMessages to current messages > repeat with msg in theMessages > display dialog (name of message container of msg as string) > > if name of message container of msg as string = "Spam" then >===== You use the message property "storage" to get a message's container: display dialog (name of storage of msg as string) Marcus -- Marcus Jarrett Adelaide, South Australia [EMAIL PROTECTED]

