• 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: How do I move a message in Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I move a message in Mail?


  • Subject: Re: How do I move a message in Mail?
  • From: cricket <email@hidden>
  • Date: Fri, 30 Aug 2002 11:38:31 -0700

On Friday, August 30, 2002, at 09:05 AM, W. Eric Tyson wrote:

I am running OS X 10.2, and I'm trying to figure out how to move selected email messages (or ones i just created via applescript) into different folders. Does anyone have some sample code or know how to do this?

This snippet will move the selected messages to the Trash mailbox:

tell application "Mail"
set theSelectedMessages to the selection
repeat with eachMessage in theSelectedMessages
set mailbox of eachMessage to mailbox "Trash"
end repeat
end tell

- cricket

----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
I'm lost and I don't know where I am.
_______________________________________________
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.

  • Follow-Ups:
    • Re: How do I move a message in Mail?
      • From: "W. Eric Tyson" <email@hidden>
References: 
 >How do I move a message in Mail? (From: "W. Eric Tyson" <email@hidden>)

  • Prev by Date: Re: AppleScript Try
  • Next by Date: Re: What's system attribute "__CF_USER_TEXT_ENCODING"?
  • Previous by thread: How do I move a message in Mail?
  • Next by thread: Re: How do I move a message in Mail?
  • Index(es):
    • Date
    • Thread