Talk About Network

Google




Programming > Applescript > trash a message...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1482 of 1697
Post > Topic >>

trash a message and attachments in Eudora

by Gérald Tenenbaum <tenenb@[EMAIL PROTECTED] > Jul 14, 2007 at 05:58 PM

Hi,

Since I am getting quite a few spams with attachments, I tried to write
a script to trash a message and its attachment(s).

Here it is

> ell application "Eudora"
>  tell the front message
>     set _list to {}
>     repeat with i from 1 to count attachments
>        set end of _list to attachment i
>     end repeat
>  end tell
> end tell
> tell application "Finder"
>  repeat with _attachment in _list
>     move _attachment to trash
>  end repeat
> end tell
> tell application "Eudora"
>  move the front message to mail folder trash
> end tell

However, it seems Eudora does not understand the last instruction.
I also tried 
> Delete the front message
with no success.

What is the correct sentence?
Thanks for any help.

Gérald
 




 2 Posts in Topic:
trash a message and attachments in Eudora
Gérald Tenenbaum <tene  2007-07-14 17:58:23 
Re: trash a message and attachments in Eudora
Gérald Tenenbaum <tene  2007-07-15 01:10:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Tue Jan 6 1:14:34 PST 2009.