>As to your suggestion about examining each message first before deleting, 
>I'd rather figure out away for Emailer to do this as 99% of messages with 
>attachments (html attachments anyway) are spam.

Oh, that is what I meant. I didn't mean for YOU to check and see if an 
attachment existed before trying to trash it, I meant for the AppleScript 
to check.

And in fact, it looks like the applescript IS checking. Its supposed to 
return a messagebox if no attachment exists. It seems it isn't doing 
that, and instead is just hanging.

So what I would try first is, remove the "on error" section so that it 
doesn't attempt to show the message box (for your needs, you don't need 
to know personally that the message lacked an attachment).

So comment out the following lines (add two dashes (--) at the start of 
the line to comment out a line in applescript).

>if fNoValidEnclosures is true then
>       display dialog "At least one of the selected messages has no valid 
>enclosures." & �
>               "" buttons {"OK"} default button "OK" with icon caution
>end if

That set of lines is at the very end of the applescript. See if removing 
those makes the problem go away. It might be as simple as Emailer is 
failing to display the messagebox because the script is being run as part 
of a mail action.

If that doesn't work, you'll have to try having the delete steps exit 
another way.

-chris
<http://www.mythtech.net>

___________________________________________________________________________
To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to
<[EMAIL PROTECTED]>  or  <[EMAIL PROTECTED]>

Reply via email to