• 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
Re: questions for scripting apple mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: questions for scripting apple mail


  • Subject: Re: questions for scripting apple mail
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 11 Jul 2007 15:07:08 -0500

On Jul 11, 2007, at 2:30 PM, Bob Cuilla wrote:
I have a mailbox "valid" in an account ""abc". I would like to select mailbox "valid", then select all the messages therein and then delete them.
How can I script this?

According to the dictionary, you use the 'delete' command. If you have a list of messages, you might write something like ...


	repeat with msg in msgList
		delete msg
		...

But ... where does a message go when it's deleted? It depends on your mailbox behaviors for that account. If you have a check next to "Move deleted messages to ...", then deleted messages go to the Trash mailbox. If not, then I think a message simply disappears.

You should some experimenting with this.

_______________________________________________
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
References: 
 >questions for scripting apple mail (From: Bob Cuilla <email@hidden>)

  • Prev by Date: Re: InDesign CS2: Problem with launching scripts out of the script window
  • Next by Date: Re: InDesign CS2: Problem with launching scripts out of the script window
  • Previous by thread: questions for scripting apple mail
  • Next by thread: Re: questions for scripting apple mail
  • Index(es):
    • Date
    • Thread