*This message was transferred with a trial version of CommuniGate(tm) Pro*
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
=====
The resultant dialog event shows display dialog "" or an empty dialog. If
I take out the 'as string' part the error is "PowerMail got an error:
Can't make name of message container of message id 16782873 into a string."
Any ideas on how to accomplish this? TIA.
--
Andy Fragen
TiBook 400/384 RAM - OS X 10.2.6 - PowerMail v4.2a7
PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html