Delete message in Mail
Delete message in Mail
- Subject: Delete message in Mail
- From: Luther Fuller <email@hidden>
- Date: Thu, 13 Nov 2008 09:34:13 -0600
Yesterday, I wrote a quickie script to scan Mail's mailboxes to
determine if mailboxes need rebuilding. The test is to compare the
message count with the file count in the /Users/<username>/Library/
Mail/.../Messages/ folder. If they are not equal, the mailbox needs
rebuilding. The source of this problem is ...
tell application "Mail" to delete msg
which does move the message and its associated file into the Trash
mailbox, but leaves a copy of the .emlx file in the original Messages
folder.
I tried to fix this with ...
tell application "Mail" to move msg to trash mailbox
or
tell application "Mail" to move msg to (trash mailbox of frontViewer)
But this DOES NOT move anything. I've tried all sorts of variations on
this theme, and 'move' does not move anything. Perhaps I haven't got
the syntax exactly right, but it seems to comply with the dictionary.
Does anyone know more? (If its a bug, I guess it should be reported.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden