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