• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Delete message in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Delete message in Mail
      • From: Axel Luttgens <email@hidden>
    • Re: Delete message in Mail
      • From: Beatrix Willius <email@hidden>
  • Prev by Date: Re: Are You Sure ?
  • Next by Date: Re: Delete message in Mail
  • Previous by thread: Re: iCal Event Problem
  • Next by thread: Re: Delete message in Mail
  • Index(es):
    • Date
    • Thread