• 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: AppleScript to move messages between mailboxes in Apple Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript to move messages between mailboxes in Apple Mail


  • Subject: Re: AppleScript to move messages between mailboxes in Apple Mail
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 21 Jul 2010 12:37:21 -0500

On Jul 21, 2010, at 11:51 AM, Jashanjeet Singh wrote:

My question is that is it possible to move messages from one mailbox
to another by telling the Mail application that move first 5 messages
of the mailbox "Inbox" to mailbox "Filed" without selecting the
messages that needs to move.

I use this line to get a list of messages ...

set messageList to reverse of (get messages of (mailboxReference))

The first item in the list is the oldest message in the mailbox.
To move these messages to another mailbox, you should probably
try using Mail's 'move' command. Something like ...

repeat with msg in messageList
move msg to newMBReference
end repeat

I've never used Mail's 'move' command, so I can't say much more.

 _______________________________________________
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: 
 >AppleScript to move messages between mailboxes in Apple Mail (From: Jashanjeet Singh <email@hidden>)

  • Prev by Date: Re: Has anyone created a script for AD 2008 home and shares in OS X.5/6?
  • Next by Date: Re: AppleScript to move messages between mailboxes in Apple Mail
  • Previous by thread: AppleScript to move messages between mailboxes in Apple Mail
  • Next by thread: Re: AppleScript to move messages between mailboxes in Apple Mail
  • Index(es):
    • Date
    • Thread