Re: Deleting messages in Eudora
Re: Deleting messages in Eudora
- Subject: Re: Deleting messages in Eudora
- From: John Delacour <email@hidden>
- Date: Thu, 10 Oct 2002 09:41:21 +0100
- Mac-eudora-version: 5.3 alpha
At 11:37 am +1000 10/10/02, Malcolm Fitzgerald wrote:
>
I have a script running which moves messages to the trash mailbox. I want to be able to delete it directly, e.g.,
>
>
tell application "Eudora" to delete last message of mailbox "ascr_users"
>
-- last message of mailbox "asrc_users" doesn't understand the delete message
>
--
The only way to to this with AE is to recreate the Trash mailbox in the Finder. It's no good just setting its eof to 0 because that does not delete the TOC and Eudora will ask if you want to rebuild it, so here's a script that will immediately remove all trace of the contents (OS 10). Users of OS 7-9 will need to use Jon's Commands instead of the shell to delete the file, if they don't want it in the system trash.
Of course, you will need to wipe your disk too if the contents of your trash is really sensitive!
tell app "Eudora"
set f to get file of mailbox 3
try
close window "Trash"
end
end
tell app "Finder"
set {mbxName, mailFolder} to {f's name, f's container}
end
do shell script "rm " & quoted form of (POSIX path of f)
tell app "Finder"
make file in mailFolder with properties {name:mbxName, creator type:"CSOm", file type:"TEXT"}
end
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.